[Checkins] SVN: z3c.pt/trunk/src/z3c/pt/translation.py Only if doctype is defined.

Malthe Borch mborch at gmail.com
Tue Aug 12 12:39:24 EDT 2008


Log message for revision 89742:
  Only if doctype is defined.

Changed:
  U   z3c.pt/trunk/src/z3c/pt/translation.py

-=-
Modified: z3c.pt/trunk/src/z3c/pt/translation.py
===================================================================
--- z3c.pt/trunk/src/z3c/pt/translation.py	2008-08-12 16:38:58 UTC (rev 89741)
+++ z3c.pt/trunk/src/z3c/pt/translation.py	2008-08-12 16:39:23 UTC (rev 89742)
@@ -681,7 +681,7 @@
     stream = generator.stream
 
     # output doctype if any
-    if isinstance(doctype, (str, unicode)):
+    if doctype and isinstance(doctype, (str, unicode)):
         dt = (doctype +'\n').encode('utf-8')
         doctype = clauses.Out(dt)
         stream.scope.append(set())



More information about the Checkins mailing list