]> granicus.if.org Git - python/commitdiff
Apply Greg Kochanski's fix for open/265.
authorEric S. Raymond <esr@thyrsus.com>
Thu, 13 Jul 2000 13:25:07 +0000 (13:25 +0000)
committerEric S. Raymond <esr@thyrsus.com>
Thu, 13 Jul 2000 13:25:07 +0000 (13:25 +0000)
Lib/netrc.py

index 60849ce6af8996b96cc2da92321e0594ebe282c1..c46ba7319099024edd1a259ccf84fc93ceb136df 100644 (file)
@@ -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)