Mercurial > repos > bcclaywell > argo_navis
comparison venv/lib/python2.7/site-packages/setuptools/py27compat.py @ 0:d67268158946 draft
planemo upload commit a3f181f5f126803c654b3a66dd4e83a48f7e203b
author | bcclaywell |
---|---|
date | Mon, 12 Oct 2015 17:43:33 -0400 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:d67268158946 |
---|---|
1 """ | |
2 Compatibility Support for Python 2.7 and earlier | |
3 """ | |
4 | |
5 import sys | |
6 | |
7 def get_all_headers(message, key): | |
8 """ | |
9 Given an HTTPMessage, return all headers matching a given key. | |
10 """ | |
11 return message.get_all(key) | |
12 | |
13 if sys.version_info < (3,): | |
14 def get_all_headers(message, key): | |
15 return message.getheaders(key) |