tgavankar/kitsune — comment on commit 44ffb7670c68713e09264de1340de04576b91436
File: apps/upload/utils.py line 64
By tgavankar:

I tried everything to avoid deepcopy (creating two stringios, using image.copy, redoing image.open, copying the stringio, etc). everything causes tracebacks because they somehow change the objects states (and are not recoverable). I hate deepcopy too, but this is the only way I could get it to work.