/usr/lib/python2.7/dist-packages/compressor/filters/yui.py is in python-compressor 1.4-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | from compressor.conf import settings
from compressor.filters import CompilerFilter
class YUICompressorFilter(CompilerFilter):
command = "{binary} {args}"
def __init__(self, *args, **kwargs):
super(YUICompressorFilter, self).__init__(*args, **kwargs)
self.command += ' --type=%s' % self.type
if self.verbose:
self.command += ' --verbose'
class YUICSSFilter(YUICompressorFilter):
type = 'css'
options = (
("binary", settings.COMPRESS_YUI_BINARY),
("args", settings.COMPRESS_YUI_CSS_ARGUMENTS),
)
class YUIJSFilter(YUICompressorFilter):
type = 'js'
options = (
("binary", settings.COMPRESS_YUI_BINARY),
("args", settings.COMPRESS_YUI_JS_ARGUMENTS),
)
|