Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 53117ae

Browse files
committed
typo in error message (fname vs. file).
(Jack)
1 parent b86ba12 commit 53117ae

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

Lib/tabnanny.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def check(file):
6666
tokenize.tokenize(f.readline, tokeneater)
6767

6868
except tokenize.TokenError, msg:
69-
print "%s: Token Error: %s" % (`fname`, str(msg))
69+
print "%s: Token Error: %s" % (`file`, str(msg))
7070
return
7171

7272
except NannyNag, nag:

Tools/idle/tabnanny.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def check(file):
6666
tokenize.tokenize(f.readline, tokeneater)
6767

6868
except tokenize.TokenError, msg:
69-
print "%s: Token Error: %s" % (`fname`, str(msg))
69+
print "%s: Token Error: %s" % (`file`, str(msg))
7070
return
7171

7272
except NannyNag, nag:

Tools/scripts/tabnanny.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def check(file):
6666
tokenize.tokenize(f.readline, tokeneater)
6767

6868
except tokenize.TokenError, msg:
69-
print "%s: Token Error: %s" % (`fname`, str(msg))
69+
print "%s: Token Error: %s" % (`file`, str(msg))
7070
return
7171

7272
except NannyNag, nag:

0 commit comments

Comments
 (0)