File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ def downcase_hook(self, data: cmd2.plugin.PostparsingData) -> cmd2.plugin.Postpa
8585 def abbrev_hook (self , data : cmd2 .plugin .PostparsingData ) -> cmd2 .plugin .PostparsingData :
8686 """Accept unique abbreviated commands"""
8787 target = 'do_' + data .statement .command
88- if not target in dir (self ):
88+ if target not in dir (self ):
8989 # check if the entered command might be an abbreviation
9090 funcs = [func for func in self .keywords if func .startswith (data .statement .command )]
9191 if len (funcs ) == 1 :
@@ -107,7 +107,7 @@ def do_list(self, arglist: List[str]) -> None:
107107 last = first + 10
108108
109109 for x in range (first , last ):
110- self .poutput (x )
110+ self .poutput (str ( x ) )
111111
112112
113113if __name__ == '__main__' :
You can’t perform that action at this time.
0 commit comments