diff options
Diffstat (limited to 'src/nbblib/commands.py')
-rw-r--r-- | src/nbblib/commands.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nbblib/commands.py b/src/nbblib/commands.py index 4a9a17f..e5eab40 100644 --- a/src/nbblib/commands.py +++ b/src/nbblib/commands.py @@ -357,7 +357,7 @@ class UnknownCommand(Exception): __all__.append('NBB_Command') class NBB_Command(object): def __init__(self, cmd, cmdargs, context): - if Command.plugins.has_key(cmd): + if cmd in Command.plugins: try: c = Command.plugins[cmd](*cmdargs, **{'context':context}) c.run() |