Skip to content
Myr

Merge pull request #4380 from afedchin/win10

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

authored by Cory Benfield · committed by GitHub · parents d1fb1a2, 351ec98 · Browse files · 2 files+9 added−4 removed
This commit

State

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

Trailers

  • utils: winreg module may not exist like on windows universal platform.

Diff stats

2 files+9 added−4 removed

  • other:+9 added−4 removed

2 files+9 added−4 removed

modified:requests/utils.py+8 added-4 removed
43 unmodified lines
44if sys.platform == 'win32':45 # provide a proxy_bypass version on Windows without DNS lookups4647 def proxy_bypass_registry(host):48 if is_py3:49 import winreg50 else:51 import _winreg as winreg48 try:49 if is_py3:50 import winreg51 else:52 import _winreg as winreg53 except ImportError:54 return False5556 try:57 internetSettings = winreg.OpenKey(winreg.HKEY_CURRENT_USER,58 r'Software\Microsoft\Windows\CurrentVersion\Internet Settings')59 # ProxyEnable could be REG_SZ or REG_DWORD, normalizing it60 proxyEnable = int(winreg.QueryValueEx(internetSettings,
888 unmodified lines
modified:HISTORY.rst+1 added
14 unmodified lines
1516- Parsing empty ``Link`` headers with ``parse_header_links()`` no longer return one bogus entry17- Fixed issue where loading the default certificate bundle from a zip archive18 would raise an ``IOError``19- Fixed issue with unexpected ``ImportError`` on windows system which do not support ``winreg`` module2021222.18.4 (2017-08-15)23+++++++++++++++++++
1520 unmodified lines