]> granicus.if.org Git - python/commitdiff
Fix typo in attribute name (file should be filename) found by
authorGuido van Rossum <guido@python.org>
Sun, 15 Apr 2001 12:51:42 +0000 (12:51 +0000)
committerGuido van Rossum <guido@python.org>
Sun, 15 Apr 2001 12:51:42 +0000 (12:51 +0000)
Neil Norwitz's PyChecker.

Lib/netrc.py

index b9ce6ba4d11d47604555e35eda08868139b06705..3f1c7c3c4c73c19bcfa2b3f37e4c437704f36103 100644 (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)