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
commit815bee4cf455983e0b9d6c7ebef442141f792050 (patch)
treec221ab440d9a82deaf871dadb6bb92dfd7bf382d /Lib/netrc.py
parent0d1b7ea365c2e299a1de4df1243927ffdfcd74d7 (diff)
downloadcpython-git-815bee4cf455983e0b9d6c7ebef442141f792050.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)