diff options
author | Andrew Svetlov <andrew.svetlov@gmail.com> | 2012-12-25 16:47:37 +0200 |
---|---|---|
committer | Andrew Svetlov <andrew.svetlov@gmail.com> | 2012-12-25 16:47:37 +0200 |
commit | 45d1bc39881473d6fec76c4627070ac0b89d4b4c (patch) | |
tree | ffa31c1c94f04716c23c5a877e085151abfbcf8b /Lib/netrc.py | |
parent | 5d30ade43e4a2d711483f3326b7f40865ccbc71e (diff) | |
download | cpython-45d1bc39881473d6fec76c4627070ac0b89d4b4c.tar.gz |
Replace IOError with OSError (#16715)
Diffstat (limited to 'Lib/netrc.py')
-rw-r--r-- | Lib/netrc.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/netrc.py b/Lib/netrc.py index c96db6f96a..7fe69ee458 100644 --- a/Lib/netrc.py +++ b/Lib/netrc.py @@ -25,7 +25,7 @@ class netrc: try: file = os.path.join(os.environ['HOME'], ".netrc") except KeyError: - raise IOError("Could not find .netrc: $HOME is not set") + raise OSError("Could not find .netrc: $HOME is not set") self.hosts = {} self.macros = {} with open(file) as fp: |