From 5f0f2f90361a4c0a76478b288998595fc3ddebd2 Mon Sep 17 00:00:00 2001 From: Roger Gonzalez Date: Wed, 8 Apr 2020 10:38:14 -0300 Subject: Added my old emacs config --- .../site-packages/setuptools/py27compat.py | 28 ++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .emacs.d.back/.python-environments/default/lib/python3.7/site-packages/setuptools/py27compat.py (limited to '.emacs.d.back/.python-environments/default/lib/python3.7/site-packages/setuptools/py27compat.py') diff --git a/.emacs.d.back/.python-environments/default/lib/python3.7/site-packages/setuptools/py27compat.py b/.emacs.d.back/.python-environments/default/lib/python3.7/site-packages/setuptools/py27compat.py new file mode 100644 index 00000000..2985011b --- /dev/null +++ b/.emacs.d.back/.python-environments/default/lib/python3.7/site-packages/setuptools/py27compat.py @@ -0,0 +1,28 @@ +""" +Compatibility Support for Python 2.7 and earlier +""" + +import platform + +from setuptools.extern import six + + +def get_all_headers(message, key): + """ + Given an HTTPMessage, return all headers matching a given key. + """ + return message.get_all(key) + + +if six.PY2: + def get_all_headers(message, key): + return message.getheaders(key) + + +linux_py2_ascii = ( + platform.system() == 'Linux' and + six.PY2 +) + +rmtree_safe = str if linux_py2_ascii else lambda x: x +"""Workaround for http://bugs.python.org/issue24672""" -- cgit v1.2.3