Skip to content
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

MAINT: Fix deprecated escape sequences #8692

Merged
merged 2 commits into from
Feb 25, 2017

Conversation

charris
Copy link
Member

@charris charris commented Feb 25, 2017

  • Fix the Python 3.6 deprecated escape sequences found in the tools directory.
  • Refactor tools/find_deprecated_escaped_characters.py.

The files in tools/swig/tests are not fixed, they are not even Python3 compatible at this point.

Fix the escape sequences deprecated in Python 3.6 found in the
tools directory. Note that this does not include the files in
tools/swig/tests which are not even Python 3 compatible at this point.
"2.6" : "C:\python26\python26.exe"}
PYEXECS = {"2.5" : r"C:\python25\python.exe",
"2.4" : r"C:\python24\python24.exe",
"2.6" : r"C:\python26\python26.exe"}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixing a script for py3.6 compat that doesn't even know 2.7 exists? I guess this is still "more correct" python 2 code though, but perhaps we should be looking at removing this completely in another PR?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, and going to remove the whole tools/win32build in a later PR ;)

Copy link
Member

@eric-wieser eric-wieser left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Generally looks good to me

@charris charris merged commit 309e450 into numpy:master Feb 25, 2017
@charris charris deleted the fix-deprecated-escape-sequences branch February 25, 2017 22:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants