work around Cython problem with parsing ur'abc' literals
authorStefan Behnel <scoder@users.berlios.de>
Thu, 15 May 2008 08:38:33 +0000 (10:38 +0200)
committerStefan Behnel <scoder@users.berlios.de>
Thu, 15 May 2008 08:38:33 +0000 (10:38 +0200)
tests/run/jarausch1.pyx

index 8132bba26187b1c55155480c86a84f6178276690..0c8e3cc9a43850e0eedbb25cc804b7a0d36373db 100644 (file)
@@ -1,10 +1,10 @@
 __doc__ = u"""
-   >>> py_x = ur'\\\\'
+   >>> py_x = br'\\\\'
    >>> assert x == py_x
 """
 
 import sys
-if sys.version_info[0] >= 3:
-    __doc__ = __doc__.replace(u" ur'", u" r'")
+if sys.version_info[0] < 3:
+    __doc__ = __doc__.replace(u" br'", u" r'")
 
-x = ur'\\'
+x = r'\\'