Skip to content

ur'string' is Py3 SyntaxError, use u'string' instead #193

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Sep 26, 2017

Conversation

cclauss
Copy link
Contributor

@cclauss cclauss commented Sep 19, 2017

$ python2

>>> ur"[\w\u2E80-\u9FFF]" == u"[\w\u2E80-\u9FFF]"
True
>>> ur"[\w\u2E80-\u9FFF]" == r"[\w\u2E80-\u9FFF]"
False

cclauss added 2 commits September 19, 2017 20:52
$ python2
```
$ python2
Python 2.7.13 (default, Jul 18 2017, 09:17:00)
[GCC 4.2.1 Compatible Apple LLVM 8.1.0 (clang-802.0.42)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> ur"[\w\u2E80-\u9FFF]" == u"[\w\u2E80-\u9FFF]"
True
>>> ur"[\w\u2E80-\u9FFF]" == r"[\w\u2E80-\u9FFF]"
False
```
@yidao620c yidao620c merged commit 8b0e903 into yidao620c:master Sep 26, 2017
@cclauss cclauss deleted the patch-2 branch September 27, 2017 03:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants