aboutsummaryrefslogtreecommitdiffstats
path: root/libbe/command
diff options
context:
space:
mode:
Diffstat (limited to 'libbe/command')
-rw-r--r--libbe/command/base.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/libbe/command/base.py b/libbe/command/base.py
index 54de8c2..40e4bf9 100644
--- a/libbe/command/base.py
+++ b/libbe/command/base.py
@@ -566,11 +566,11 @@ class UserInterface (object):
return command.run(options, args)
def setup_command(self, command):
- if command.ui == None:
+ if command.ui is None:
command.ui = self
- if self.io != None:
+ if self.io is not None:
self.io.setup_command(command)
- if self.storage_callbacks != None:
+ if self.storage_callbacks is not None:
self.storage_callbacks.setup_command(command)
command.restrict_file_access = self.restrict_file_access
command._get_user_id = self._get_user_id