Skip to content

Commit

Permalink
Use degenerate form for fallback.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco authored and hoodmane committed May 24, 2024
1 parent b9a7bed commit d87f444
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions micropip/_commands/freeze.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,7 @@ def load_pip_package(
if not requires:
fix_package_dependencies(name)
requires = dist.read_text("PYODIDE_REQUIRES")
if requires:
depends = json.loads(requires)
else:
depends = []
depends = json.loads(requires or "[]")

pkg_entry: dict[str, Any] = dict(
name=name,
Expand Down

0 comments on commit d87f444

Please sign in to comment.