Slight style cleanup.

This commit is contained in:
Florent Xicluna 2010-05-17 10:39:07 +00:00
parent 422545f0e7
commit e127e24359
1 changed files with 6 additions and 8 deletions

View File

@ -1157,7 +1157,8 @@ def splitvalue(attr):
return attr, None return attr, None
_hexdig = '0123456789ABCDEFabcdef' _hexdig = '0123456789ABCDEFabcdef'
_hextochr = dict((a+b, chr(int(a+b,16))) for a in _hexdig for b in _hexdig) _hextochr = dict((a + b, chr(int(a + b, 16)))
for a in _hexdig for b in _hexdig)
def unquote(s): def unquote(s):
"""unquote('abc%20def') -> 'abc def'.""" """unquote('abc%20def') -> 'abc def'."""
@ -1380,7 +1381,6 @@ if sys.platform == 'darwin':
return False return False
def getproxies_macosx_sysconf(): def getproxies_macosx_sysconf():
"""Return a dictionary of scheme -> proxy server URL mappings. """Return a dictionary of scheme -> proxy server URL mappings.
@ -1389,8 +1389,6 @@ if sys.platform == 'darwin':
""" """
return _get_proxies() return _get_proxies()
def proxy_bypass(host): def proxy_bypass(host):
if getproxies_environment(): if getproxies_environment():
return proxy_bypass_environment(host) return proxy_bypass_environment(host)