summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimothy Edmund Crosley <timothy.crosley@gmail.com>2019-03-23 22:54:41 -0700
committerGitHub <noreply@github.com>2019-03-23 22:54:41 -0700
commit675d23535ffd76a702827c06d5b97740a224c0c5 (patch)
tree8ec733ff5260c846cee61659ee0055c2840194cf
parent90984631b99e27095829a3abcceb279fb7b12032 (diff)
parent136b8d90b397fcbcad4e243b1ea75589bf0c565b (diff)
downloadisort-feature/fix-issue-907.tar.gz
Merge branch 'master' into feature/fix-issue-907feature/fix-issue-907
-rw-r--r--CHANGELOG.md4
-rw-r--r--isort/settings.py2
-rw-r--r--test_isort.py7
3 files changed, 11 insertions, 2 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 3939c45a..f85ff4a1 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,8 +1,10 @@
Changelog
=========
+
### 4.3.16 - March 23, 2019 - hot fix release
-- Fixed issue #909 - skip and skip-glob are not enforced when using settings-path
+- Fixed issue #909 - skip and skip-glob are not enforced when using settings-path.
- Fixed issue #907 - appdirs optional requirement does not correctly specify version
+- Fixed issue #778 - remove `user` from known standard library as it's no longer in any supported Python version.
### 4.3.15 - March 10, 2019 - hot fix release
- Fixed a regression with handling streaming input from pipes (Issue #895)
diff --git a/isort/settings.py b/isort/settings.py
index 336d0b1e..fca84678 100644
--- a/isort/settings.py
+++ b/isort/settings.py
@@ -117,7 +117,7 @@ default = {'force_to_top': [],
'test', 'textwrap', 'this', 'thread', 'threading', 'time', 'timeit', 'tkinter',
'token', 'tokenize', 'trace', 'traceback', 'tracemalloc', 'ttk', 'tty', 'turtle',
'turtledemo', 'types', 'typing', 'unicodedata', 'unittest', 'urllib', 'urllib2',
- 'urlparse', 'user', 'usercustomize', 'uu', 'uuid', 'venv', 'videoreader',
+ 'urlparse', 'usercustomize', 'uu', 'uuid', 'venv', 'videoreader',
'warnings', 'wave', 'weakref', 'webbrowser', 'whichdb', 'winreg', 'winsound',
'wsgiref', 'xdrlib', 'xml', 'xmlrpc', 'xmlrpclib', 'zipapp', 'zipfile',
'zipimport', 'zlib'],
diff --git a/test_isort.py b/test_isort.py
index 1e75c17e..c4d3b4e5 100644
--- a/test_isort.py
+++ b/test_isort.py
@@ -2919,3 +2919,10 @@ def test_settings_path_skip_issue_909(tmpdir):
os.chdir(str(test_run_directory))
assert b'skipped 2' in results.lower()
+
+
+def test_standard_library_deprecates_user_issue_778():
+ test_input = ('import os\n'
+ '\n'
+ 'import user\n')
+ assert SortImports(file_contents=test_input).output == test_input