summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xLib/tabnanny.py2
-rw-r--r--Misc/NEWS.d/next/Library/2022-09-29-08-15-55.gh-issue-97639.JSjWYW.rst1
2 files changed, 1 insertions, 2 deletions
diff --git a/Lib/tabnanny.py b/Lib/tabnanny.py
index 7973f26f98..a47f5a96b8 100755
--- a/Lib/tabnanny.py
+++ b/Lib/tabnanny.py
@@ -23,8 +23,6 @@ __version__ = "6"
import os
import sys
import tokenize
-if not hasattr(tokenize, 'NL'):
- raise ValueError("tokenize.NL doesn't exist -- tokenize module too old")
__all__ = ["check", "NannyNag", "process_tokens"]
diff --git a/Misc/NEWS.d/next/Library/2022-09-29-08-15-55.gh-issue-97639.JSjWYW.rst b/Misc/NEWS.d/next/Library/2022-09-29-08-15-55.gh-issue-97639.JSjWYW.rst
new file mode 100644
index 0000000000..65c3105f3b
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2022-09-29-08-15-55.gh-issue-97639.JSjWYW.rst
@@ -0,0 +1 @@
+Remove ``tokenize.NL`` check from :mod:`tabnanny`.