Skip to content

Commit

Permalink
ref: use clearer protocol spec
Browse files Browse the repository at this point in the history
  • Loading branch information
beckermr authored Jun 21, 2024
1 parent cf5f903 commit 6e9fdae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions conda_build/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -822,9 +822,9 @@ def clean_pkgs(self):
def copy(self) -> Config:
new = copy.copy(self)
# Use picke.loads(pickle.dumps(...) as a faster copy.deepcopy alternative.
new.variant = pickle.loads(pickle.dumps(self.variant, -1))
new.variant = pickle.loads(pickle.dumps(self.variant, pickle.HIGHEST_PROTOCOL))
if hasattr(self, "variants"):
new.variants = pickle.loads(pickle.dumps(self.variants, -1))
new.variants = pickle.loads(pickle.dumps(self.variants, pickle.HIGHEST_PROTOCOL))
return new

# context management - automatic cleanup if self.dirty or self.keep_old_work is not True
Expand Down

0 comments on commit 6e9fdae

Please sign in to comment.