old_contents: from __future__ import unicode_literals
  
  from os.path import dirname
  
  from pipeline.conf import settings
  from pipeline.compilers import SubProcessCompiler
  
  
  class SASSCompiler(SubProcessCompiler):
      output_extension = 'css'
  
      def match_file(self, filename):
          return filename.endswith(('.scss', '.sass'))
  
      def compile_file(self, infile, outfile, outdated=False, force=False):
          command = "%s %s --update %s:%s" % (
              settings.PIPELINE_SASS_BINARY,
              settings.PIPELINE_SASS_ARGUMENTS,
              infile,
              outfile
          )
          return self.execute_command(command, cwd=dirname(infile))
  
new_contents: from __future__ import unicode_literals
  
  from os.path import dirname
  
  from pipeline.conf import settings
  from pipeline.compilers import SubProcessCompiler
  
  
  class SASSCompiler(SubProcessCompiler):
      output_extension = 'css'
  
      def match_file(self, filename):
          return filename.endswith(('.scss', '.sass'))
  
      def compile_file(self, infile, outfile, outdated=False, force=False):
          command = "%s %s %s > %s" % (
              settings.PIPELINE_SASS_BINARY,
              settings.PIPELINE_SASS_ARGUMENTS,
              infile,
              # same as the infile but with .css instead of .scss/.sass
              infile[:-4] + 'css'
          )
          return self.execute_command(command, cwd=dirname(infile))
  
subject: Rewrite sass compiler class to work with PyScss