Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 40e56f3

Browse filesBrowse 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
Copy full SHA for 40e56f3

File tree

Expand file treeCollapse file tree

2 files changed

+1
-2
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+1
-2
lines changed

‎Lib/tabnanny.py

Copy file name to clipboardExpand all lines: Lib/tabnanny.py
-2Lines 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

+1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.