From 815bee4cf455983e0b9d6c7ebef442141f792050 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Sun, 15 Apr 2001 12:51:42 +0000 Subject: [PATCH] Fix typo in attribute name (file should be filename) found by Neil Norwitz's PyChecker. --- Lib/netrc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/netrc.py b/Lib/netrc.py index b9ce6ba4d11..3f1c7c3c4c7 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)