db95e63a632bc0bd62f1842bda8ef30e0e6df6ff,imagekit/utils.py,,img_to_fobj,#,5

Before Change



def img_to_fobj(img, format, **kwargs):
    tmp = tempfile.TemporaryFile()
    img.convert("RGB").save(tmp, format, **kwargs)
    tmp.seek(0)
    return tmp

After Change


        //assert False, img.info
        kwargs["transparency"] = 255
    else:
        img.convert("RGB")
    
    img.save(tmp, format, **kwargs)
    tmp.seek(0)
    return tmp
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 2

Instances


Project Name: matthewwithanm/django-imagekit
Commit Name: db95e63a632bc0bd62f1842bda8ef30e0e6df6ff
Time: 2011-08-23
Author: ryan@ryanbagwell.com
File Name: imagekit/utils.py
Class Name:
Method Name: img_to_fobj


Project Name: SheffieldML/GPy
Commit Name: 9758001d02e2a96bd6da9db74cde358b2593c455
Time: 2015-09-10
Author: ibinbei@gmail.com
File Name: setup.py
Class Name:
Method Name: read_to_rst


Project Name: matthewwithanm/django-imagekit
Commit Name: d36e624acb349b3fd78bb3fb91ba0bcc696719c2
Time: 2011-11-02
Author: dp@deepakprakash.com
File Name: imagekit/utils.py
Class Name:
Method Name: img_to_fobj