[Checkins] SVN: martian/branches/jw-philipp-using-ndir-directives/src/martian/directive.py Make the MODULE scope also work on FakeModule

Philipp von Weitershausen philikon at philikon.de
Sat May 3 12:50:59 EDT 2008


Log message for revision 86255:
  Make the MODULE scope also work on FakeModule

Changed:
  U   martian/branches/jw-philipp-using-ndir-directives/src/martian/directive.py

-=-
Modified: martian/branches/jw-philipp-using-ndir-directives/src/martian/directive.py
===================================================================
--- martian/branches/jw-philipp-using-ndir-directives/src/martian/directive.py	2008-05-03 16:36:53 UTC (rev 86254)
+++ martian/branches/jw-philipp-using-ndir-directives/src/martian/directive.py	2008-05-03 16:50:59 UTC (rev 86255)
@@ -57,8 +57,7 @@
     description = 'class'
 
     def check(self, frame):
-        return (util.frame_is_class(frame) and
-                not is_fake_module(frame))
+        return util.frame_is_class(frame) and not is_fake_module(frame)
 
 CLASS = ClassScope()
 
@@ -66,8 +65,7 @@
     description = 'class or module'
 
     def check(self, frame):
-        return (util.frame_is_class(frame) or
-                util.frame_is_module(frame))
+        return util.frame_is_class(frame) or util.frame_is_module(frame)
 
 CLASS_OR_MODULE = ClassOrModuleScope()
 
@@ -75,7 +73,7 @@
     description = 'module'
 
     def check(self, frame):
-        return util.frame_is_module(frame)
+        return util.frame_is_module(frame) or is_fake_module(frame)
 
 MODULE = ModuleScope()
 



More information about the Checkins mailing list