[Zope3-checkins] CVS: Zope3/src/zope/tal - talinterpreter.py:1.21
Jeremy Hylton
jeremy@zope.com
Mon, 30 Jun 2003 15:35:06 -0400
Update of /cvs-repository/Zope3/src/zope/tal
In directory cvs.zope.org:/tmp/cvs-serv20551
Modified Files:
talinterpreter.py
Log Message:
Move initialization code to a function.
Only necessary to make pychecker happy. (And it is a lot happier.)
=== Zope3/src/zope/tal/talinterpreter.py 1.20 => 1.21 ===
--- Zope3/src/zope/tal/talinterpreter.py:1.20 Thu May 1 15:35:49 2003
+++ Zope3/src/zope/tal/talinterpreter.py Mon Jun 30 15:35:03 2003
@@ -37,10 +37,14 @@
"disabled", "readonly", "multiple", "selected", "noresize",
"defer"
]
-d = {}
-for s in BOOLEAN_HTML_ATTRS:
- d[s] = 1
-BOOLEAN_HTML_ATTRS = d
+
+def _init():
+ d = {}
+ for s in BOOLEAN_HTML_ATTRS:
+ d[s] = 1
+ return d
+
+BOOLEAN_HTML_ATTRS = _init()
_nulljoin = ''.join
_spacejoin = ' '.join