<s> from compressor . filters . base import CompilerFilter <EOL> from compressor . filters . css_default import CssAbsoluteFilter <EOL> from compressor . utils import staticfiles <EOL> class CustomCssAbsoluteFilter ( CssAbsoluteFilter ) : <EOL> def find ( self , basename ) : <EOL> if basename and staticfiles . finders : <EOL> return staticfiles . finders . find ( basename ) <EOL> class LessFilter ( CompilerFilter ) : <EOL> def __init__ ( self , content , attrs , ** kwargs ) : <EOL> super ( LessFilter , self ) . __init__ ( <EOL> content , <EOL> command = '<STR_LIT>' , <EOL> ** kwargs ) <EOL> def input ( self , ** kwargs ) : <EOL> content = super ( LessFilter , self ) . input ( ** kwargs ) <EOL> return CustomCssAbsoluteFilter ( content ) . input ( ** kwargs ) </s>
