[Checkins] SVN: Sandbox/malthe/chameleon.core/ Ensure that function arguments passed into macros are unique.
Hanno Schlichting
plone at hannosch.info
Fri Nov 28 17:04:47 EST 2008
Log message for revision 93433:
Ensure that function arguments passed into macros are unique.
Changed:
U Sandbox/malthe/chameleon.core/CHANGES.txt
U Sandbox/malthe/chameleon.core/src/chameleon/core/translation.py
-=-
Modified: Sandbox/malthe/chameleon.core/CHANGES.txt
===================================================================
--- Sandbox/malthe/chameleon.core/CHANGES.txt 2008-11-28 19:33:14 UTC (rev 93432)
+++ Sandbox/malthe/chameleon.core/CHANGES.txt 2008-11-28 22:04:47 UTC (rev 93433)
@@ -4,6 +4,8 @@
HEAD
~~~~
+- Ensure that function arguments passed into macros are unique. [hannosch]
+
- Removed unused imports, thanks to PyFlakes. [hannosch]
- Removed warning about utf-8 as a recommend default encoding. There is no
Modified: Sandbox/malthe/chameleon.core/src/chameleon/core/translation.py
===================================================================
--- Sandbox/malthe/chameleon.core/src/chameleon/core/translation.py 2008-11-28 19:33:14 UTC (rev 93432)
+++ Sandbox/malthe/chameleon.core/src/chameleon/core/translation.py 2008-11-28 22:04:47 UTC (rev 93433)
@@ -417,7 +417,7 @@
arguments = ", ".join(
tuple("%s=%s" % (arg, arg) for arg in \
- itertools.chain(*self.stream.scope))+
+ set(itertools.chain(*self.stream.scope)))+
tuple("%s=%s" % kwarg for kwarg in kwargs))
value = types.value(
More information about the Checkins
mailing list