diff options
author | Ville Skyttä <ville.skytta@iki.fi> | 2017-03-01 16:12:35 +0200 |
---|---|---|
committer | Ville Skyttä <ville.skytta@iki.fi> | 2017-03-01 16:12:35 +0200 |
commit | e610aca42ce673af77c38577528e432073060f81 (patch) | |
tree | 782d9c8f6e4f3d4adc6f66d979a698e0ff2381df | |
parent | 3b2afd46f23be64cafdca80abcabaf3b0d0f97cd (diff) | |
download | isort-e610aca42ce673af77c38577528e432073060f81.tar.gz |
Python 3.6 invalid escape sequence deprecation fixes
https://docs.python.org/3/whatsnew/3.6.html#deprecated-python-behavior
-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): |