From 2685f5ece520309b97248963edfe08881fd40aa9 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Thu, 15 May 2008 10:38:33 +0200 Subject: [PATCH] work around Cython problem with parsing ur'abc' literals --- tests/run/jarausch1.pyx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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'\\' -- 2.26.2