aboutsummaryrefslogtreecommitdiffstats
path: root/libbe/command/base.py
diff options
context:
space:
mode:
authorW. Trevor King <wking@tremily.us>2012-08-24 09:35:40 -0400
committerW. Trevor King <wking@tremily.us>2012-08-24 09:35:40 -0400
commit366fc9867645e46406d6a040eb14cabd8a8b45f4 (patch)
tree15b30a3fd4e6a72eed0cab2740dc41cf3d459199 /libbe/command/base.py
parent58b7129a23e15015262c6917a91ece749f66d7bb (diff)
downloadbugseverywhere-366fc9867645e46406d6a040eb14cabd8a8b45f4.tar.gz
command:base: use is/is-not None instead of ==/!= None in setup_command.
More Pythonic.
Diffstat (limited to 'libbe/command/base.py')
-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