python3 fix
authorKenneth Reitz <me@kennethreitz.com>
Fri, 24 Feb 2012 05:44:01 +0000 (00:44 -0500)
committerKenneth Reitz <me@kennethreitz.com>
Fri, 24 Feb 2012 05:44:01 +0000 (00:44 -0500)
requests/utils.py

index 106c7d8..f960d31 100644 (file)
@@ -50,7 +50,7 @@ def get_netrc_auth(url):
             # Return with login / password
             login_i = (0 if _netrc[0] else 1)
             return (_netrc[login_i], _netrc[2])
-    except NetrcParseError, IOError:
+    except (NetrcParseError, IOError):
         # If there was a parsing error or a permissions issue reading the file,
         # we'll just skip netrc auth
         pass