summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Lib/netrc.py2
1 files changed, 1 insertions, 1 deletions
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)