Mercurial > repos > shellac > guppy_basecaller
comparison env/lib/python3.7/site-packages/setuptools/py27compat.py @ 5:9b1c78e6ba9c draft default tip
"planemo upload commit 6c0a8142489327ece472c84e558c47da711a9142"
author | shellac |
---|---|
date | Mon, 01 Jun 2020 08:59:25 -0400 |
parents | 79f47841a781 |
children |
comparison
equal
deleted
inserted
replaced
4:79f47841a781 | 5:9b1c78e6ba9c |
---|---|
1 """ | |
2 Compatibility Support for Python 2.7 and earlier | |
3 """ | |
4 | |
5 import platform | |
6 | |
7 from setuptools.extern import six | |
8 | |
9 | |
10 def get_all_headers(message, key): | |
11 """ | |
12 Given an HTTPMessage, return all headers matching a given key. | |
13 """ | |
14 return message.get_all(key) | |
15 | |
16 | |
17 if six.PY2: | |
18 def get_all_headers(message, key): | |
19 return message.getheaders(key) | |
20 | |
21 | |
22 linux_py2_ascii = ( | |
23 platform.system() == 'Linux' and | |
24 six.PY2 | |
25 ) | |
26 | |
27 rmtree_safe = str if linux_py2_ascii else lambda x: x | |
28 """Workaround for http://bugs.python.org/issue24672""" |