from electrum.util import print_msg, raw_input
from .keepkey import KeepKeyPlugin
from ..hw_wallet import CmdLineHandler

class Plugin(KeepKeyPlugin):
    handler = CmdLineHandler()
    @hook
    def init_keystore(self, keystore):
        if not isinstance(keystore, self.keystore_class):
            return
        keystore.handler = self.handler

from electrum.plugins import hook
from electrum.util import print_msg, raw_input
from .keepkey import KeepKeyPlugin
from ..hw_wallet import CmdLineHandler

class Plugin(KeepKeyPlugin):
    handler = CmdLineHandler()
    @hook
    def init_keystore(self, keystore):
        if not isinstance(keystore, self.keystore_class):
            return
        keystore.handler = self.handler

Fix undefined reference error in command line KeepKey plugin.
Fix undefined reference error in command line KeepKey plugin.

+ from electrum.plugins import hook
  from electrum.util import print_msg, raw_input
  from .keepkey import KeepKeyPlugin
  from ..hw_wallet import CmdLineHandler
  
  class Plugin(KeepKeyPlugin):
      handler = CmdLineHandler()
      @hook
      def init_keystore(self, keystore):
          if not isinstance(keystore, self.keystore_class):
              return
          keystore.handler = self.handler
  
Fix undefined reference error in command line KeepKey plugin.
## Code Before:
from electrum.util import print_msg, raw_input
from .keepkey import KeepKeyPlugin
from ..hw_wallet import CmdLineHandler

class Plugin(KeepKeyPlugin):
    handler = CmdLineHandler()
    @hook
    def init_keystore(self, keystore):
        if not isinstance(keystore, self.keystore_class):
            return
        keystore.handler = self.handler

## Instruction:
Fix undefined reference error in command line KeepKey plugin.
## Code After:
from electrum.plugins import hook
from electrum.util import print_msg, raw_input
from .keepkey import KeepKeyPlugin
from ..hw_wallet import CmdLineHandler

class Plugin(KeepKeyPlugin):
    handler = CmdLineHandler()
    @hook
    def init_keystore(self, keystore):
        if not isinstance(keystore, self.keystore_class):
            return
        keystore.handler = self.handler
