Skip to content

Commit

Permalink
remove redundant deepcopy of config.variant
Browse files Browse the repository at this point in the history
config.copy already copies this, no need to do it twice in metadata.copy
  • Loading branch information
minrk committed Jul 1, 2024
1 parent 8bcbf09 commit d1ba529
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion conda_build/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -2394,7 +2394,6 @@ def validate_features(self):
def copy(self: Self) -> MetaData:
new = copy.copy(self)
new.config = self.config.copy()
new.config.variant = copy.deepcopy(self.config.variant)
new.meta = copy.deepcopy(self.meta)
new.type = getattr(
self, "type", "conda_v2" if self.config.conda_pkg_format == "2" else "conda"
Expand Down

0 comments on commit d1ba529

Please sign in to comment.