[Checkins] SVN: z3c.pt/trunk/src/z3c/pt/ Slightly more elegant.
Malthe Borch
mborch at gmail.com
Tue Sep 2 11:20:34 EDT 2008
Log message for revision 90713:
Slightly more elegant.
Changed:
U z3c.pt/trunk/src/z3c/pt/clauses.py
U z3c.pt/trunk/src/z3c/pt/translation.txt
-=-
Modified: z3c.pt/trunk/src/z3c/pt/clauses.py
===================================================================
--- z3c.pt/trunk/src/z3c/pt/clauses.py 2008-09-02 15:17:50 UTC (rev 90712)
+++ z3c.pt/trunk/src/z3c/pt/clauses.py 2008-09-02 15:20:34 UTC (rev 90713)
@@ -476,13 +476,7 @@
def __init__(self, tag, attributes=None,
selfclosing=False, expression=None, cdata=False):
- i = tag.find('}')
-
- if i != -1:
- self.tag = tag[i+1:]
- else:
- self.tag = tag
-
+ self.tag = tag.split('}')[-1]
self.selfclosing = selfclosing
self.attributes = attributes or {}
self.expression = expression and Assign(expression)
Modified: z3c.pt/trunk/src/z3c/pt/translation.txt
===================================================================
--- z3c.pt/trunk/src/z3c/pt/translation.txt 2008-09-02 15:17:50 UTC (rev 90712)
+++ z3c.pt/trunk/src/z3c/pt/translation.txt 2008-09-02 15:20:34 UTC (rev 90713)
@@ -27,7 +27,7 @@
... Hello World!
... </html>""")
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html>
+ <html xmlns="http://www.w3.org/1999/xhtml">
Hello World!
</html>
More information about the Checkins
mailing list