From: Guido van Rossum <guido@python.org>
Date: Sun, 15 Apr 2001 12:51:42 +0000 (+0000)
Subject: Fix typo in attribute name (file should be filename) found by
X-Git-Tag: v2.1c2~18
X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=815bee4cf455983e0b9d6c7ebef442141f792050;p=python

Fix typo in attribute name (file should be filename) found by
Neil Norwitz's PyChecker.
---

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)