trepan/processor/subcmd.py
def lookup(self, subcmd_prefix):
        """Find subcmd in self.subcmds"""
        for subcmd_name in list(self.subcmds.keys()):
            if subcmd_name.startswith(subcmd_prefix) \
               and len(subcmd_prefix) >= \
               self.subcmds[subcmd_name].__class__.min_abbrev:
                return self.subcmds[subcmd_name]
            pass
        return None
def lookup(self, subcmd_prefix):
        for subcmd_name in list(self.subcmds.keys()):
            if subcmd_name.startswith(subcmd_prefix) \
               and len(subcmd_prefix) >= \
               self.subcmds[subcmd_name].__class__.min_abbrev:
                return self.subcmds[subcmd_name]
            pass
        return None
def lookup ( self , subcmd_prefix ) : for subcmd_name in list ( self . subcmds . keys ( ) ) : if subcmd_name . startswith ( subcmd_prefix ) and len ( subcmd_prefix ) >= self . subcmds [ subcmd_name ] . __class__ . min_abbrev : return self . subcmds [ subcmd_name ] pass return None
Find subcmd in self.subcmds
Find subcmd in self . subcmds