From 366fc9867645e46406d6a040eb14cabd8a8b45f4 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Fri, 24 Aug 2012 09:35:40 -0400 Subject: [PATCH] command:base: use is/is-not None instead of ==/!= None in setup_command. More Pythonic. --- libbe/command/base.py | 6 +++--- 1 file 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 -- 2.26.2