diff options
author | Timothy Edmund Crosley <timothy.crosley@gmail.com> | 2017-04-03 18:35:00 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-03 18:35:00 -0700 |
commit | 63e791c1b7c5e724ea9ae297cd6cb661fa0762e7 (patch) | |
tree | 5fa226e2ec4b8d11df7cc4726ff64cefa9c5f893 | |
parent | 24ac43f68597033e746f3cdbd287e8fd1188c36a (diff) | |
parent | e610aca42ce673af77c38577528e432073060f81 (diff) | |
download | isort-63e791c1b7c5e724ea9ae297cd6cb661fa0762e7.tar.gz |
Merge pull request #501 from scop/py36esc
Python 3.6 invalid escape sequence deprecation fixes
-rwxr-xr-x | isort/main.py | 4 | ||||
-rw-r--r-- | isort/natural.py | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/isort/main.py b/isort/main.py index b5ca93d9..e4d5f1dd 100755 --- a/isort/main.py +++ b/isort/main.py @@ -33,8 +33,8 @@ from isort.settings import DEFAULT_SECTIONS, default, from_path, should_skip from .pie_slice import * -INTRO = """ -/#######################################################################\\ +INTRO = r""" +/#######################################################################\ `sMMy` .yyyy- ` diff --git a/isort/natural.py b/isort/natural.py index 0529fa60..aac8c4a3 100644 --- a/isort/natural.py +++ b/isort/natural.py @@ -33,7 +33,7 @@ def _atoi(text): def _natural_keys(text): - return [_atoi(c) for c in re.split('(\d+)', text)] + return [_atoi(c) for c in re.split(r'(\d+)', text)] def nsorted(to_sort, key=None): |