Skip to content

Commit

Permalink
Revert "Fixed #1785: module incorrectly excluded from stdlib definiti…
Browse files Browse the repository at this point in the history
…on."

This reverts commit 754b55a.
  • Loading branch information
timothycrosley committed Jul 27, 2021
1 parent 3afcb2d commit 8ae8d50
Show file tree
Hide file tree
Showing 8 changed files with 1 addition and 8 deletions.
1 change: 0 additions & 1 deletion CHANGELOG.md
Expand Up @@ -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.
Expand Down
1 change: 0 additions & 1 deletion isort/stdlibs/py27.py
Expand Up @@ -40,7 +40,6 @@
"UserString",
"W",
"__builtin__",
"_ast",
"_winreg",
"abc",
"aepack",
Expand Down
1 change: 0 additions & 1 deletion isort/stdlibs/py35.py
Expand Up @@ -6,7 +6,6 @@
"""

stdlib = {
"_ast",
"_dummy_thread",
"_thread",
"abc",
Expand Down
1 change: 0 additions & 1 deletion isort/stdlibs/py36.py
Expand Up @@ -6,7 +6,6 @@
"""

stdlib = {
"_ast",
"_dummy_thread",
"_thread",
"abc",
Expand Down
1 change: 0 additions & 1 deletion isort/stdlibs/py37.py
Expand Up @@ -6,7 +6,6 @@
"""

stdlib = {
"_ast",
"_dummy_thread",
"_thread",
"abc",
Expand Down
1 change: 0 additions & 1 deletion isort/stdlibs/py38.py
Expand Up @@ -6,7 +6,6 @@
"""

stdlib = {
"_ast",
"_dummy_thread",
"_thread",
"abc",
Expand Down
1 change: 0 additions & 1 deletion isort/stdlibs/py39.py
Expand Up @@ -6,7 +6,6 @@
"""

stdlib = {
"_ast",
"_thread",
"abc",
"aifc",
Expand Down
2 changes: 1 addition & 1 deletion scripts/mkstdlibs.py
Expand Up @@ -31,7 +31,7 @@ class FakeApp:
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__"]:
Expand Down

0 comments on commit 8ae8d50

Please sign in to comment.