summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2000-07-13 13:25:07 (GMT)
committerEric S. Raymond <esr@thyrsus.com>2000-07-13 13:25:07 (GMT)
commit5e70cfe22fb4df86c6a3af887148ee6b96d59bc9 (patch)
treef81cc2ef3cb462561f7d95b22463d2d17a952766
parentdfbd4c769516f750fb58cc819c7cdfa1592cf3e3 (diff)
downloadcpython-5e70cfe22fb4df86c6a3af887148ee6b96d59bc9.zip
cpython-5e70cfe22fb4df86c6a3af887148ee6b96d59bc9.tar.gz
cpython-5e70cfe22fb4df86c6a3af887148ee6b96d59bc9.tar.bz2
Apply Greg Kochanski's fix for open/265.
-rw-r--r--Lib/netrc.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/Lib/netrc.py b/Lib/netrc.py
index 60849ce..c46ba73 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)