Commit 2685f5ec authored by Stefan Behnel's avatar Stefan Behnel

work around Cython problem with parsing ur'abc' literals

parent 5aa09e09
__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'\\'
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment