Commit 259da7c9 authored by Stefan Behnel's avatar Stefan Behnel

Avoid deepcopying utility code objects since they should not get mutated anyway.

parent 77ca9310
...@@ -439,6 +439,10 @@ class UtilityCodeBase(object): ...@@ -439,6 +439,10 @@ class UtilityCodeBase(object):
def get_tree(self, **kwargs): def get_tree(self, **kwargs):
pass pass
def __deepcopy__(self, memodict=None):
# No need to deep-copy utility code since it's essentially immutable.
return self
class UtilityCode(UtilityCodeBase): class UtilityCode(UtilityCodeBase):
""" """
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment