We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3d7aec1 commit 2b33be1Copy full SHA for 2b33be1
distlib/markers.py
@@ -31,10 +31,7 @@ def _is_literal(o):
31
return o[0] in '\'"'
32
33
def _get_versions(s):
34
- result = []
35
- for m in _VERSION_PATTERN.finditer(s):
36
- result.append(NV(m.groups()[0]))
37
- return set(result)
+ return {NV(m.groups()[0]) for m in _VERSION_PATTERN.finditer(s)}
38
39
class Evaluator(object):
40
"""
0 commit comments