Commit f5f6efca by Rayan Das Committed by Steph Samson

iterate the dictionary directly instead of calling .keys()

Signed-off-by: Rayan Das <rayandas91@gmail.com>
parent 73585b60
...@@ -101,7 +101,7 @@ class Provider: ...@@ -101,7 +101,7 @@ class Provider:
if dependency.is_root: if dependency.is_root:
return PackageCollection(dependency, [self._package]) return PackageCollection(dependency, [self._package])
for constraint in self._search_for.keys(): for constraint in self._search_for:
if ( if (
constraint.is_same_package_as(dependency) constraint.is_same_package_as(dependency)
and constraint.constraint.intersect(dependency.constraint) and constraint.constraint.intersect(dependency.constraint)
......
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