Skip to content

Commit 0e3a046

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 <[email protected]>
1 parent e34b00c commit 0e3a046

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

Lib/tabnanny.py

Lines changed: 0 additions & 2 deletions
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

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

0 commit comments

Comments
 (0)