summaryrefslogtreecommitdiff
path: root/Lib/netrc.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2013-08-21 21:43:08 +0300
committerSerhiy Storchaka <storchaka@gmail.com>2013-08-21 21:43:08 +0300
commitb7517ef372de8d3e7d2be2182962fe11f0a7ee60 (patch)
treef1fed2086be31a896d1ff47efda77c7f3b91353e /Lib/netrc.py
parentfdc29e85c4aa9a1d2964ec93b55f9d8e53be9fb2 (diff)
parentd1e599e1c9f6aa68e2974fb2746d5bb5b49f35e3 (diff)
downloadcpython-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.py2
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: