diff mercurial/demandimport.py @ 12964:34034e55424f

check-code: using and/or/not as a function is bad style
author Martin Geisler <mg@lazybytes.net>
date Thu, 11 Nov 2010 00:08:09 +0100
parents bc91a79fa3d0
children 4db5bfea1b07
line wrap: on
line diff
--- a/mercurial/demandimport.py	Wed Nov 10 15:44:19 2010 +0100
+++ b/mercurial/demandimport.py	Thu Nov 11 00:08:09 2010 +0100
@@ -111,7 +111,7 @@
             mod = getattr(mod, comp)
         for x in fromlist:
             # set requested submodules for demand load
-            if not(hasattr(mod, x)):
+            if not hasattr(mod, x):
                 setattr(mod, x, _demandmod(x, mod.__dict__, locals))
         return mod