Skip to content

Commit 58e2d8b

Browse files
committed
Address feedback in PR
1 parent cb0c58d commit 58e2d8b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/hooks.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

113113
if __name__ == '__main__':

0 commit comments

Comments
 (0)