Commit c35659d0 authored by Jason R. Coombs's avatar Jason R. Coombs

Remove _sort_dists (unused)

parent 0852c453
...@@ -2601,12 +2601,6 @@ def parse_requirements(strs): ...@@ -2601,12 +2601,6 @@ def parse_requirements(strs):
yield Requirement(project_name, specs, extras) yield Requirement(project_name, specs, extras)
def _sort_dists(dists):
tmp = [(dist.hashcmp,dist) for dist in dists]
tmp.sort()
dists[::-1] = [d for hc,d in tmp]
class Requirement: class Requirement:
def __init__(self, project_name, specs, extras): def __init__(self, project_name, specs, extras):
"""DO NOT CALL THIS UNDOCUMENTED METHOD; use Requirement.parse()!""" """DO NOT CALL THIS UNDOCUMENTED METHOD; use Requirement.parse()!"""
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment