[Checkins] SVN: martian/trunk/src/martian/directive.py Remove superfluous magic.

Philipp von Weitershausen philikon at philikon.de
Mon May 5 06:13:52 EDT 2008


Log message for revision 86439:
  Remove superfluous magic.

Changed:
  U   martian/trunk/src/martian/directive.py

-=-
Modified: martian/trunk/src/martian/directive.py
===================================================================
--- martian/trunk/src/martian/directive.py	2008-05-05 09:57:28 UTC (rev 86438)
+++ martian/trunk/src/martian/directive.py	2008-05-05 10:13:51 UTC (rev 86439)
@@ -171,9 +171,7 @@
 
     @classmethod
     def set(cls, component, value):
-        # Create an instance of the directive without calling __init__
-        self = cls.__new__(cls)
-        cls.store.setattr(component, self, value)
+        cls.store.setattr(component, cls, value)
 
 
 class MultipleTimesDirective(Directive):



More information about the Checkins mailing list