Skip to content
Myr

Fix for AppEngine

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Samuel Hug · committed by Samuel Hug · parent 25f86f1 · Browse files · 1 file+2 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−1 removed

  • other:+2 added−1 removed

1 file+2 added−1 removed

modified:requests/utils.py+2 added-1 removed
15 unmodified lines
16import os17import platform18import re19import sys20from netrc import netrc, NetrcParseError2021from . import __version__22from . import certs23from .compat import parse_http_list as _parse_list_header
41 unmodified lines
65def get_netrc_auth(url):66 """Returns the Requests tuple auth for a given url from netrc."""6768 try:69 from netrc import netrc, NetrcParseError7071 locations = (os.path.expanduser('~/{0}'.format(f)) for f in NETRC_FILES)72 netrc_path = None7374 for loc in locations:
509 unmodified lines