From: W. Trevor King Date: Fri, 24 Aug 2012 13:35:40 +0000 (-0400) Subject: command:base: use is/is-not None instead of ==/!= None in setup_command. X-Git-Tag: 1.1.0~127 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=366fc9867645e46406d6a040eb14cabd8a8b45f4;p=be.git command:base: use is/is-not None instead of ==/!= None in setup_command. More Pythonic. --- 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