summaryrefslogtreecommitdiff
path: root/Lib/netrc.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2001-04-15 12:51:42 +0000
committerGuido van Rossum <guido@python.org>2001-04-15 12:51:42 +0000
commit69d931a14ab57b57cf567dad234209240fd36ad8 (patch)
tree3aac68e9a4d00b3e97698d7fbe4b7b30da3ce7a9 /Lib/netrc.py
parent50d24a024bb27b64dd19481bba5cd0c8aadb4c6f (diff)
downloadcpython-69d931a14ab57b57cf567dad234209240fd36ad8.tar.gz
Fix typo in attribute name (file should be filename) found by
Neil Norwitz's PyChecker.
Diffstat (limited to 'Lib/netrc.py')
-rw-r--r--Lib/netrc.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/netrc.py b/Lib/netrc.py
index b9ce6ba4d1..3f1c7c3c4c 100644
--- a/Lib/netrc.py
+++ b/Lib/netrc.py
@@ -10,7 +10,7 @@ __all__ = ["netrc", "NetrcParseError"]
class NetrcParseError(Exception):
"""Exception raised on syntax errors in the .netrc file."""
def __init__(self, msg, filename=None, lineno=None):
- self.filename = file
+ self.filename = filename
self.lineno = lineno
self.msg = msg
Exception.__init__(self, msg)