summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimothy Crosley <timothy.crosley@gmail.com>2021-07-26 22:55:16 -0700
committerTimothy Crosley <timothy.crosley@gmail.com>2021-07-26 22:55:16 -0700
commit8ae8d5045bcc4b80850d22fc4191dc36552d4e5b (patch)
tree4096b477c21e9f4796da87f501fd50e724f2d41e
parent3afcb2dac3d8208ffeb1400c5208e0a3877923c3 (diff)
downloadisort-8ae8d5045bcc4b80850d22fc4191dc36552d4e5b.tar.gz
Revert "Fixed #1785: module incorrectly excluded from stdlib definition."
This reverts commit 754b55a4b7ab14f98aa0ec308d176a0265885d03.
-rw-r--r--CHANGELOG.md1
-rw-r--r--isort/stdlibs/py27.py1
-rw-r--r--isort/stdlibs/py35.py1
-rw-r--r--isort/stdlibs/py36.py1
-rw-r--r--isort/stdlibs/py37.py1
-rw-r--r--isort/stdlibs/py38.py1
-rw-r--r--isort/stdlibs/py39.py1
-rwxr-xr-xscripts/mkstdlibs.py2
8 files changed, 1 insertions, 8 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 8004d9c0..c8085c36 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -9,7 +9,6 @@ Find out more about isort's release policy [here](https://pycqa.github.io/isort/
- Made all exceptions pickleable.
- Fixed #1779: Pylama integration ignores pylama specific isort config overrides.
- Fixed #1781: `--from-first` CLI flag shouldn't take any arguments.
- - Fixed #1785: `_ast` module incorrectly excluded from stdlib definition.
### 5.9.2 July 8th 2021
- Improved behavior of `isort --check --atomic` against Cython files.
diff --git a/isort/stdlibs/py27.py b/isort/stdlibs/py27.py
index a9bc99d0..87aa67f1 100644
--- a/isort/stdlibs/py27.py
+++ b/isort/stdlibs/py27.py
@@ -40,7 +40,6 @@ stdlib = {
"UserString",
"W",
"__builtin__",
- "_ast",
"_winreg",
"abc",
"aepack",
diff --git a/isort/stdlibs/py35.py b/isort/stdlibs/py35.py
index 29ab9aeb..274d8a7d 100644
--- a/isort/stdlibs/py35.py
+++ b/isort/stdlibs/py35.py
@@ -6,7 +6,6 @@ using the mkstdlibs.py script.
"""
stdlib = {
- "_ast",
"_dummy_thread",
"_thread",
"abc",
diff --git a/isort/stdlibs/py36.py b/isort/stdlibs/py36.py
index 59ebd24c..8ae02a15 100644
--- a/isort/stdlibs/py36.py
+++ b/isort/stdlibs/py36.py
@@ -6,7 +6,6 @@ using the mkstdlibs.py script.
"""
stdlib = {
- "_ast",
"_dummy_thread",
"_thread",
"abc",
diff --git a/isort/stdlibs/py37.py b/isort/stdlibs/py37.py
index e0ad1228..0eb1dd6f 100644
--- a/isort/stdlibs/py37.py
+++ b/isort/stdlibs/py37.py
@@ -6,7 +6,6 @@ using the mkstdlibs.py script.
"""
stdlib = {
- "_ast",
"_dummy_thread",
"_thread",
"abc",
diff --git a/isort/stdlibs/py38.py b/isort/stdlibs/py38.py
index 3d89fd26..9bcea9a1 100644
--- a/isort/stdlibs/py38.py
+++ b/isort/stdlibs/py38.py
@@ -6,7 +6,6 @@ using the mkstdlibs.py script.
"""
stdlib = {
- "_ast",
"_dummy_thread",
"_thread",
"abc",
diff --git a/isort/stdlibs/py39.py b/isort/stdlibs/py39.py
index 4b7dd595..7bcb8f2b 100644
--- a/isort/stdlibs/py39.py
+++ b/isort/stdlibs/py39.py
@@ -6,7 +6,6 @@ using the mkstdlibs.py script.
"""
stdlib = {
- "_ast",
"_thread",
"abc",
"aifc",
diff --git a/scripts/mkstdlibs.py b/scripts/mkstdlibs.py
index cf523798..ee08ba1d 100755
--- a/scripts/mkstdlibs.py
+++ b/scripts/mkstdlibs.py
@@ -31,7 +31,7 @@ for version_info in VERSIONS:
invdata = fetch_inventory(FakeApp(), "", url)
# Any modules we want to enforce across Python versions stdlib can be included in set init
- modules = {"_ast", "posixpath", "ntpath", "sre_constants", "sre_parse", "sre_compile", "sre"}
+ modules = {"posixpath", "ntpath", "sre_constants", "sre_parse", "sre_compile", "sre"}
for module in invdata["py:module"]:
root, *_ = module.split(".")
if root not in ["__future__", "__main__"]: