[Checkins] SVN: z3c.pt/trunk/src/z3c/pt/clauses.py Write out attribute at once.
Malthe Borch
mborch at gmail.com
Wed Sep 10 16:23:56 EDT 2008
Log message for revision 91043:
Write out attribute at once.
Changed:
U z3c.pt/trunk/src/z3c/pt/clauses.py
-=-
Modified: z3c.pt/trunk/src/z3c/pt/clauses.py
===================================================================
--- z3c.pt/trunk/src/z3c/pt/clauses.py 2008-09-10 20:16:53 UTC (rev 91042)
+++ z3c.pt/trunk/src/z3c/pt/clauses.py 2008-09-10 20:23:56 UTC (rev 91043)
@@ -544,9 +544,6 @@
stream.write("if %s not in (False, None):" % temp)
stream.indent()
- # print the attribute name
- stream.write("%s(' %s=\"')" % (stream.symbols.write, attribute))
-
# if an encoding is specified, we need to check
# whether we're dealing with unicode strings or not,
# before writing out the attribute
@@ -567,8 +564,9 @@
# escape expression
stream.escape(temp)
- stream.write("%s(%s)" % (stream.symbols.write, temp))
- stream.write("%s('\"')" % stream.symbols.write)
+ # print attribute
+ stream.write("%s(' %s=\"'+%s+'\"')" % (
+ stream.symbols.write, attribute, temp))
stream.outdent()
assign.end(stream)
More information about the Checkins
mailing list