Skip to content

Commit

Permalink
remove "simulated" deepcopy
Browse files Browse the repository at this point in the history
  • Loading branch information
dholth committed Sep 21, 2023
1 parent c141ece commit 3731959
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions conda_index/index/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -345,10 +345,7 @@ def _get_resolve_object(subdir, precs=None, repodata=None):

# repodata = copy.deepcopy(repodata) # slower than json.dumps/load loop
repodata_copy = json.loads(json.dumps(repodata))
for group in ("packages", "packages.conda"):
repodata_copy[group] = {
key: value.copy() for key, value in repodata.get(group, {}).items()
}

# adds url, Channel objects to each repodata package
sd._process_raw_repodata(repodata_copy)

Expand Down

0 comments on commit 3731959

Please sign in to comment.