Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(640)

Side by Side Diff: recipe_engine/third_party/setuptools/py26compat.py

Issue 1344583003: Recipe package system. (Closed) Base URL: git@github.com:luci/recipes-py.git@master
Patch Set: Recompiled proto Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
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
OLDNEW
« no previous file with comments | « recipe_engine/third_party/setuptools/package_index.py ('k') | recipe_engine/third_party/setuptools/py27compat.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698