Commit c502bb88 authored by Janez K's avatar Janez K
Browse files

removed deepcopy

parent ba42fca0
......@@ -58,9 +58,9 @@ def dbsafe_encode(value, compress_object=False, pickle_protocol=DEFAULT_PROTOCOL
#import traceback
if not compress_object:
value = b64encode(dumps(deepcopy(value), pickle_protocol))
value = b64encode(dumps(value, pickle_protocol))
value = b64encode(compress(dumps(deepcopy(value), pickle_protocol)))
value = b64encode(compress(dumps(value, pickle_protocol)))
return PickledObject(value)
Supports Markdown
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