summaryrefslogtreecommitdiff
path: root/setuptools/py27compat.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2016-09-27 14:24:22 -0500
committerJason R. Coombs <jaraco@jaraco.com>2016-09-27 14:24:22 -0500
commit66a6724da8eda3336643dee086da2a3495e6422a (patch)
tree64043e9782491bde3a3a9ae2314cc59451a6c9c0 /setuptools/py27compat.py
parentdf3905616933c90af95e99f705b800a2f5c1c921 (diff)
parent35ea365b50bd1a64375fdbcce187affab22af3b7 (diff)
downloadpython-setuptools-git-setuptools-scm.tar.gz
Merge with mastersetuptools-scm
Diffstat (limited to 'setuptools/py27compat.py')
-rw-r--r--setuptools/py27compat.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/setuptools/py27compat.py b/setuptools/py27compat.py
index 702f7d65..57eb150b 100644
--- a/setuptools/py27compat.py
+++ b/setuptools/py27compat.py
@@ -4,12 +4,14 @@ 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)