Skip to content

Commit 40e56f3

Browse files
gh-97639: Remove tokenize.NL check from tabnanny (GH-97640)
* gh-97639: Remove `tokenize.NL` check from `tabnanny` * 📜🤖 Added by blurb_it. Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> (cherry picked from commit 0601684) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
1 parent 82ce586 commit 40e56f3

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

Lib/tabnanny.py

-2
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@
2323
import os
2424
import sys
2525
import tokenize
26-
if not hasattr(tokenize, 'NL'):
27-
raise ValueError("tokenize.NL doesn't exist -- tokenize module too old")
2826

2927
__all__ = ["check", "NannyNag", "process_tokens"]
3028

Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Remove ``tokenize.NL`` check from :mod:`tabnanny`.

0 commit comments

Comments
 (0)