Skip to content

Commit 8b1f793

Browse files
committed
Renamed a setting just for internal consistency.
1 parent 72a219f commit 8b1f793

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

compressor/conf/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
if COMPRESS_JS_FILTERS is None:
2020
COMPRESS_JS_FILTERS = []
2121

22-
COMPRESS_DATA_URI_MIN_SIZE = getattr(settings, 'COMPRESS_DATA_URI_MIN_SIZE', 1024)
22+
DATA_URI_MIN_SIZE = getattr(settings, 'COMPRESS_DATA_URI_MIN_SIZE', 1024)
2323

2424
# rebuilds the cache every 30 days if nothing has changed.
2525
REBUILD_TIMEOUT = getattr(settings, 'COMPRESS_REBUILD_TIMEOUT', 2592000) # 30 days

compressor/filters/datauri.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def data_uri_converter(self, matchobj):
3131
url = matchobj.group(1).strip(' \'"')
3232
if not url.startswith('data:'):
3333
path = self.get_file_path(url)
34-
if os.stat(path).st_size <= settings.COMPRESS_DATA_URI_MIN_SIZE:
34+
if os.stat(path).st_size <= settings.DATA_URI_MIN_SIZE:
3535
data = b64encode(open(path, 'rb').read())
3636
return 'url(http://github.com/"data:%s;base64,%s")' % (mimetypes.guess_type(path)[0], data)
3737
return 'url(http://github.com/"%s")' % url

0 commit comments

Comments
 (0)