Fix typo in attribute name (file should be filename) found by

Neil Norwitz's PyChecker.
This commit is contained in:
Guido van Rossum 2001-04-15 12:51:42 +00:00
parent 0d1b7ea365
commit 815bee4cf4
1 changed files with 1 additions and 1 deletions

View File

@ -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)