Skip to content

Commit 0482daf

Browse files
committed
Revert "Update python/private/pypi/pypi_cache.bzl"
This reverts commit f14f630. Can't do that because the requested packages may come from anywhere, so the dict access may fail.
1 parent f14f630 commit 0482daf

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

python/private/pypi/pypi_cache.bzl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,9 +129,9 @@ def _filter_packages(dists, requested_versions):
129129

130130
if type(dists) == "dict":
131131
result = {
132-
pkg: dists[pkg]
133-
for pkg in requested_versions
134-
if pkg in dists
132+
pkg: url
133+
for pkg, url in dists.items()
134+
if pkg in requested_versions
135135
}
136136
return result if result else None
137137

0 commit comments

Comments
 (0)