summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2001-04-15 12:51:42 (GMT)
committerGuido van Rossum <guido@python.org>2001-04-15 12:51:42 (GMT)
commit815bee4cf455983e0b9d6c7ebef442141f792050 (patch)
treec221ab440d9a82deaf871dadb6bb92dfd7bf382d /Lib
parent0d1b7ea365c2e299a1de4df1243927ffdfcd74d7 (diff)
downloadcpython-815bee4cf455983e0b9d6c7ebef442141f792050.zip
cpython-815bee4cf455983e0b9d6c7ebef442141f792050.tar.gz
cpython-815bee4cf455983e0b9d6c7ebef442141f792050.tar.bz2
Fix typo in attribute name (file should be filename) found by
Neil Norwitz's PyChecker.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/netrc.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/netrc.py b/Lib/netrc.py
index b9ce6ba..3f1c7c3 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)