diff options
author | Ville Skyttä <ville.skytta@iki.fi> | 2017-02-24 10:55:44 +0200 |
---|---|---|
committer | Ville Skyttä <ville.skytta@iki.fi> | 2017-02-24 19:37:39 +0200 |
commit | e753cb42481783ac858ceb518aaac1472075063c (patch) | |
tree | a32e98067242439d3fe609cf8672045d04b5cd35 /setuptools/sandbox.py | |
parent | 4c560effc96a75f337193bc164ad4117b0e333ab (diff) | |
download | external_python_setuptools-e753cb42481783ac858ceb518aaac1472075063c.tar.gz external_python_setuptools-e753cb42481783ac858ceb518aaac1472075063c.tar.bz2 external_python_setuptools-e753cb42481783ac858ceb518aaac1472075063c.zip |
Python 3.6 invalid escape sequence deprecation fixes
Diffstat (limited to 'setuptools/sandbox.py')
-rwxr-xr-x | setuptools/sandbox.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/setuptools/sandbox.py b/setuptools/sandbox.py index 0ddd2332..41c1c3b1 100755 --- a/setuptools/sandbox.py +++ b/setuptools/sandbox.py @@ -215,7 +215,7 @@ def _needs_hiding(mod_name): >>> _needs_hiding('Cython') True """ - pattern = re.compile('(setuptools|pkg_resources|distutils|Cython)(\.|$)') + pattern = re.compile(r'(setuptools|pkg_resources|distutils|Cython)(\.|$)') return bool(pattern.match(mod_name)) @@ -391,7 +391,7 @@ class DirectorySandbox(AbstractSandbox): _exception_patterns = [ # Allow lib2to3 to attempt to save a pickled grammar object (#121) - '.*lib2to3.*\.pickle$', + r'.*lib2to3.*\.pickle$', ] "exempt writing to paths that match the pattern" |