From e20db8b2bb25933fdc312469a0095a8b25c8c9e4 Mon Sep 17 00:00:00 2001 From: Nikita Sobolev Date: Thu, 29 Sep 2022 11:13:36 +0300 Subject: [PATCH 1/2] gh-97639: Remove `tokenize.NL` check from `tabnanny` --- Lib/tabnanny.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/Lib/tabnanny.py b/Lib/tabnanny.py index 7973f26f98b8b2..a47f5a96b89722 100755 --- a/Lib/tabnanny.py +++ b/Lib/tabnanny.py @@ -23,8 +23,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"] From de00543b44e976560fb6328d34e4debf00c85e26 Mon Sep 17 00:00:00 2001 From: "blurb-it[bot]" <43283697+blurb-it[bot]@users.noreply.github.com> Date: Thu, 29 Sep 2022 08:15:55 +0000 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=93=9C=F0=9F=A4=96=20Added=20by=20blu?= =?UTF-8?q?rb=5Fit.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../next/Library/2022-09-29-08-15-55.gh-issue-97639.JSjWYW.rst | 1 + 1 file changed, 1 insertion(+) create mode 100644 Misc/NEWS.d/next/Library/2022-09-29-08-15-55.gh-issue-97639.JSjWYW.rst 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 00000000000000..65c3105f3bc36b --- /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`.