Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def _requirement_from_metadata(name, version, extras, index):
# Markers are intentionally dropped here. They will be added to candidates
# after resolution, so we can perform marker aggregation.
r = requirementslib.Requirement.from_metadata(name, version, extras, None)
r.index = index
return r
def _requirement_from_metadata(name, version, extras, index):
# Markers are intentionally dropped here. They will be added to candidates
# after resolution, so we can perform marker aggregation.
r = requirementslib.Requirement.from_metadata(name, version, extras, None)
r.index = index
return r