4bb1ff1cc21817fae0fad3993d65e5f4ff4d16b8,utils/templatetags/bookmarklet_includes.py,,include_bookmarklet_css,#,19

Before Change


        abs_filename = os.path.join(settings.MEDIA_ROOT, filename)
        f = open(abs_filename, "r")
        css = f.read()
        css = css.replace("\"", "\\"").replace("\n", " ")
        text.append(css)
    
    return "".join(text)
    

After Change


    
@register.simple_tag
def include_bookmarklet_css():
    return settings.JAMMIT.render_code("stylesheets", "bookmarklet")
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: samuelclay/NewsBlur
Commit Name: 4bb1ff1cc21817fae0fad3993d65e5f4ff4d16b8
Time: 2011-11-24
Author: samuel@ofbrooklyn.com
File Name: utils/templatetags/bookmarklet_includes.py
Class Name:
Method Name: include_bookmarklet_css


Project Name: konlpy/konlpy
Commit Name: cd28d70a9a960053d1d4f6d3e8fcf982ff12221b
Time: 2015-01-10
Author: me@lucypark.kr
File Name: setup.py
Class Name:
Method Name: requirements


Project Name: samuelclay/NewsBlur
Commit Name: 4bb1ff1cc21817fae0fad3993d65e5f4ff4d16b8
Time: 2011-11-24
Author: samuel@ofbrooklyn.com
File Name: utils/templatetags/bookmarklet_includes.py
Class Name:
Method Name: include_bookmarklet_css


Project Name: jazzband/django-debug-toolbar
Commit Name: 8525bfc7fb2e868edf24fb5c6fea00bc871d7489
Time: 2013-10-26
Author: aymeric.augustin@m4x.org
File Name: debug_toolbar/utils/tracking/db.py
Class Name: NormalCursorWrapper
Method Name: _quote_expr