示例#1
0
文件: lgtv.py 项目: wrohdewald/halirc
 def humanCommand(self):
     result = self._decoded.split(':')[0]
     if result:
         if result not in self.commands:
             LOGGER.critical('LGTV: unknown argument {}'.format(self._decoded))
             sys.exit(2)
     return result
示例#2
0
文件: lgtv.py 项目: wrohdewald/halirc
 def humanCommand(self):
     result = self._decoded.split(':')[0]
     if result:
         if result not in self.commands:
             LOGGER.critical('LGTV: unknown argument {}'.format(
                 self._decoded))
             sys.exit(2)
     return result