Py3 fix
authorStefan Behnel <scoder@users.berlios.de>
Sun, 5 Jul 2009 19:33:36 +0000 (21:33 +0200)
committerStefan Behnel <scoder@users.berlios.de>
Sun, 5 Jul 2009 19:33:36 +0000 (21:33 +0200)
Cython/Compiler/Parsing.py

index 44bc6774644a6140fcb6f22a9dac0a524993acb9..724e4c1b3a1ce43a6b1d778ef8387fdd15eec096 100644 (file)
@@ -594,7 +594,7 @@ def p_cat_string_literal(s):
         if kind == 'u':
             value = EncodedString( u''.join(strings) )
         else:
-            value = BytesLiteral( ''.join(strings) )
+            value = BytesLiteral( StringEncoding.join_bytes(strings) )
             value.encoding = s.source_encoding
     return kind, value