From: Stefan Behnel Date: Thu, 15 May 2008 08:38:33 +0000 (+0200) Subject: work around Cython problem with parsing ur'abc' literals X-Git-Tag: 0.9.8rc1~37^2~60 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=2685f5ece520309b97248963edfe08881fd40aa9;p=cython.git work around Cython problem with parsing ur'abc' literals --- diff --git a/tests/run/jarausch1.pyx b/tests/run/jarausch1.pyx index 8132bba2..0c8e3cc9 100644 --- a/tests/run/jarausch1.pyx +++ b/tests/run/jarausch1.pyx @@ -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'\\'