Switch to python3
This commit is contained in:
parent
531041e89a
commit
9ba4b6a91a
5286 changed files with 677347 additions and 576888 deletions
15
Shared/lib/python3.4/site-packages/setuptools/py27compat.py
Normal file
15
Shared/lib/python3.4/site-packages/setuptools/py27compat.py
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
"""
|
||||
Compatibility Support for Python 2.7 and earlier
|
||||
"""
|
||||
|
||||
import sys
|
||||
|
||||
def get_all_headers(message, key):
|
||||
"""
|
||||
Given an HTTPMessage, return all headers matching a given key.
|
||||
"""
|
||||
return message.get_all(key)
|
||||
|
||||
if sys.version_info < (3,):
|
||||
def get_all_headers(message, key):
|
||||
return message.getheaders(key)
|
||||
Loading…
Add table
Add a link
Reference in a new issue