mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Fix typo in attribute name (file should be filename) found by
Neil Norwitz's PyChecker.
This commit is contained in:
parent
0d1b7ea365
commit
815bee4cf4
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue