Mercurial > repos > bcclaywell > argo_navis
comparison venv/lib/python2.7/site-packages/setuptools/py26compat.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.6 and earlier | |
3 """ | |
4 | |
5 import sys | |
6 | |
7 from setuptools.compat import splittag | |
8 | |
9 def strip_fragment(url): | |
10 """ | |
11 In `Python 8280 <http://bugs.python.org/issue8280>`_, Python 2.7 and | |
12 later was patched to disregard the fragment when making URL requests. | |
13 Do the same for Python 2.6 and earlier. | |
14 """ | |
15 url, fragment = splittag(url) | |
16 return url | |
17 | |
18 if sys.version_info >= (2,7): | |
19 strip_fragment = lambda x: x |