diff options
author | Timothy Edmund Crosley <timothy.crosley@gmail.com> | 2019-03-11 21:22:42 -0700 |
---|---|---|
committer | Timothy Crosley <timothy.crosley@gmail.com> | 2019-03-23 22:51:37 -0700 |
commit | 136b8d90b397fcbcad4e243b1ea75589bf0c565b (patch) | |
tree | b30f530e3dd7b7b47677c3b592b4138eb99d0d23 | |
parent | da01262b8f03b70e889d3b1255e041978f6d40d9 (diff) | |
download | isort-136b8d90b397fcbcad4e243b1ea75589bf0c565b.tar.gz |
Merge pull request #900 from timothycrosley/feature/fix-issue-778
Fix issue #778, deprecating Python3.4 support - starting with removal…
-rw-r--r-- | CHANGELOG.md | 4 | ||||
-rw-r--r-- | isort/settings.py | 2 | ||||
-rw-r--r-- | test_isort.py | 7 |
3 files changed, 11 insertions, 2 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index d656640d..358e1600 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,9 @@ 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 #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 |