Commit 5e70cfe2 authored by Eric S. Raymond's avatar Eric S. Raymond

Apply Greg Kochanski's fix for open/265.

parent dfbd4c76
...@@ -8,10 +8,7 @@ class netrc: ...@@ -8,10 +8,7 @@ class netrc:
def __init__(self, file=None): def __init__(self, file=None):
if not file: if not file:
file = os.path.join(os.environ['HOME'], ".netrc") file = os.path.join(os.environ['HOME'], ".netrc")
try: fp = open(file)
fp = open(file)
except:
return None
self.hosts = {} self.hosts = {}
self.macros = {} self.macros = {}
lexer = shlex.shlex(fp) lexer = shlex.shlex(fp)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment