summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2022-10-04 02:07:10 (GMT)
committerGitHub <noreply@github.com>2022-10-04 02:07:10 (GMT)
commit40e56f3191a2fd242b2c03d483fe23c960fb8c22 (patch)
treef7ea292dcfe8b2a9351e0ad1d9250950748b741e /Lib
parent82ce586f10257c3176c1e92745f6e19f3787c9f1 (diff)
downloadcpython-40e56f3191a2fd242b2c03d483fe23c960fb8c22.zip
cpython-40e56f3191a2fd242b2c03d483fe23c960fb8c22.tar.gz
cpython-40e56f3191a2fd242b2c03d483fe23c960fb8c22.tar.bz2
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 06016845dcca1d444a6db6d70ce9fe6274d551d3) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Diffstat (limited to 'Lib')
-rwxr-xr-xLib/tabnanny.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/Lib/tabnanny.py b/Lib/tabnanny.py
index 7973f26..a47f5a9 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"]