commit | 5e70cfe22fb4df86c6a3af887148ee6b96d59bc9 | [log] [tgz] |
---|---|---|
author | Eric S. Raymond <esr@thyrsus.com> | Thu Jul 13 13:25:07 2000 +0000 |
committer | Eric S. Raymond <esr@thyrsus.com> | Thu Jul 13 13:25:07 2000 +0000 |
tree | f81cc2ef3cb462561f7d95b22463d2d17a952766 | |
parent | dfbd4c769516f750fb58cc819c7cdfa1592cf3e3 [diff] [blame] |
Apply Greg Kochanski's fix for open/265.
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 @@ 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)