[Checkins] SVN: z3c.pt/trunk/ Make sure path expressions are simple strings, not unicode.

Malthe Borch mborch at gmail.com
Fri Apr 24 08:06:45 EDT 2009


Log message for revision 99465:
  Make sure path expressions are simple strings, not unicode.

Changed:
  U   z3c.pt/trunk/CHANGES.txt
  U   z3c.pt/trunk/src/z3c/pt/expressions.py

-=-
Modified: z3c.pt/trunk/CHANGES.txt
===================================================================
--- z3c.pt/trunk/CHANGES.txt	2009-04-24 09:26:35 UTC (rev 99464)
+++ z3c.pt/trunk/CHANGES.txt	2009-04-24 12:06:45 UTC (rev 99465)
@@ -3,6 +3,9 @@
 
 In the next release
 
+- Make sure the path expression is a simple string, not
+  unicode. [malthe]
+
 - Detect path prefix properly for ViewPageTemplateFile usage in
   doctests. [sidnei]
 

Modified: z3c.pt/trunk/src/z3c/pt/expressions.py
===================================================================
--- z3c.pt/trunk/src/z3c/pt/expressions.py	2009-04-24 09:26:35 UTC (rev 99464)
+++ z3c.pt/trunk/src/z3c/pt/expressions.py	2009-04-24 12:06:45 UTC (rev 99465)
@@ -186,7 +186,7 @@
                 component = "%s %% (%s,)" % (
                     repr(part), ", ".join(interpolation_args))
             else:
-                component = repr(part)
+                component = repr(str(part))
 
             components.append(component)
 



More information about the Checkins mailing list