Skip to content

Commit

Permalink
Fixed #1785: module incorrectly excluded from stdlib definition.
Browse files Browse the repository at this point in the history
  • Loading branch information
timothycrosley committed Jul 16, 2021
1 parent c467a98 commit 754b55a
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Find out more about isort's release policy [here](https://pycqa.github.io/isort/
- Improved text of skipped file message to mention gitignore feature.
- 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: 1 addition & 0 deletions isort/stdlibs/py27.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
"UserString",
"W",
"__builtin__",
"_ast",
"_winreg",
"abc",
"aepack",
Expand Down
1 change: 1 addition & 0 deletions isort/stdlibs/py35.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"""

stdlib = {
"_ast",
"_dummy_thread",
"_thread",
"abc",
Expand Down
1 change: 1 addition & 0 deletions isort/stdlibs/py36.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"""

stdlib = {
"_ast",
"_dummy_thread",
"_thread",
"abc",
Expand Down
1 change: 1 addition & 0 deletions isort/stdlibs/py37.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"""

stdlib = {
"_ast",
"_dummy_thread",
"_thread",
"abc",
Expand Down
1 change: 1 addition & 0 deletions isort/stdlibs/py38.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"""

stdlib = {
"_ast",
"_dummy_thread",
"_thread",
"abc",
Expand Down
1 change: 1 addition & 0 deletions isort/stdlibs/py39.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"""

stdlib = {
"_ast",
"_thread",
"abc",
"aifc",
Expand Down
2 changes: 1 addition & 1 deletion scripts/mkstdlibs.py
Original file line number Diff line number Diff line change
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 = {"posixpath", "ntpath", "sre_constants", "sre_parse", "sre_compile", "sre"}
modules = {"_ast", "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 754b55a

Please sign in to comment.