diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2000-07-13 13:25:07 (GMT) |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2000-07-13 13:25:07 (GMT) |
commit | 5e70cfe22fb4df86c6a3af887148ee6b96d59bc9 (patch) | |
tree | f81cc2ef3cb462561f7d95b22463d2d17a952766 /Lib/netrc.py | |
parent | dfbd4c769516f750fb58cc819c7cdfa1592cf3e3 (diff) | |
download | cpython-5e70cfe22fb4df86c6a3af887148ee6b96d59bc9.zip cpython-5e70cfe22fb4df86c6a3af887148ee6b96d59bc9.tar.gz cpython-5e70cfe22fb4df86c6a3af887148ee6b96d59bc9.tar.bz2 |
Apply Greg Kochanski's fix for open/265.
Diffstat (limited to 'Lib/netrc.py')
-rw-r--r-- | Lib/netrc.py | 5 |
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) |