diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2013-08-21 21:43:08 +0300 |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2013-08-21 21:43:08 +0300 |
commit | b7517ef372de8d3e7d2be2182962fe11f0a7ee60 (patch) | |
tree | f1fed2086be31a896d1ff47efda77c7f3b91353e /Lib/netrc.py | |
parent | fdc29e85c4aa9a1d2964ec93b55f9d8e53be9fb2 (diff) | |
parent | d1e599e1c9f6aa68e2974fb2746d5bb5b49f35e3 (diff) | |
download | cpython-b7517ef372de8d3e7d2be2182962fe11f0a7ee60.tar.gz |
Issue #17119: Fixed integer overflows when processing large strings and tuples
in the tkinter module.
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: |