<s> from __future__ import unicode_literals <EOL> from pipeline . conf import settings <EOL> from pipeline . compressors import SubProcessCompressor <EOL> class YuglifyCompressor ( SubProcessCompressor ) : <EOL> def compress_common ( self , content , compress_type , arguments ) : <EOL> command = ( <EOL> settings . YUGLIFY_BINARY , <EOL> "<STR_LIT>" . format ( compress_type ) , <EOL> arguments <EOL> ) <EOL> return self . execute_command ( command , content ) <EOL> def compress_js ( self , js ) : <EOL> return self . compress_common ( js , '<STR_LIT>' , settings . YUGLIFY_JS_ARGUMENTS ) <EOL> def compress_css ( self , css ) : <EOL> return self . compress_common ( css , '<STR_LIT>' , settings . YUGLIFY_CSS_ARGUMENTS ) </s>
