summaryrefslogtreecommitdiff
path: root/Lib/netrc.py
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2000-07-13 13:25:07 +0000
committerEric S. Raymond <esr@thyrsus.com>2000-07-13 13:25:07 +0000
commitc033d483ab0741fe31271613cd2302f5cd07e0f6 (patch)
tree45f413209f373dea6cf1d360bc6cb45b9c0333ef /Lib/netrc.py
parentd96d8c8bf4c2e2bd29992be092ed8c389525f59d (diff)
downloadcpython-c033d483ab0741fe31271613cd2302f5cd07e0f6.tar.gz
Apply Greg Kochanski's fix for open/265.
Diffstat (limited to 'Lib/netrc.py')
-rw-r--r--Lib/netrc.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/Lib/netrc.py b/Lib/netrc.py
index 60849ce6af..c46ba73190 100644
--- a/Lib/netrc.py
+++ b/Lib/netrc.py
@@ -8,10 +8,7 @@ class netrc:
def __init__(self, file=None):
if not file:
file = os.path.join(os.environ['HOME'], ".netrc")
- try:
- fp = open(file)
- except:
- return None
+ fp = open(file)
self.hosts = {}
self.macros = {}
lexer = shlex.shlex(fp)