[Checkins] SVN: Sandbox/malthe/chameleon.zpt/src/chameleon/zpt/language.py Return boolean values here to be clear that these are not to be dynamically computed.
Malthe Borch
mborch at gmail.com
Thu Sep 25 14:21:59 EDT 2008
Log message for revision 91483:
Return boolean values here to be clear that these are not to be dynamically computed.
Changed:
U Sandbox/malthe/chameleon.zpt/src/chameleon/zpt/language.py
-=-
Modified: Sandbox/malthe/chameleon.zpt/src/chameleon/zpt/language.py
===================================================================
--- Sandbox/malthe/chameleon.zpt/src/chameleon/zpt/language.py 2008-09-25 15:31:23 UTC (rev 91482)
+++ Sandbox/malthe/chameleon.zpt/src/chameleon/zpt/language.py 2008-09-25 18:21:57 UTC (rev 91483)
@@ -53,8 +53,8 @@
if variable in itertools.chain(*self.stream.scope):
return True
- return self.content or \
- self.use_macro or self.translate is not None
+ return bool(self.content) or \
+ bool(self.use_macro) or self.translate is not None
@property
def dynamic_attributes(self):
More information about the Checkins
mailing list