def get_output(self, variation):
        # We import this here, so App Engine Helper users don't get import
        # errors.
        from subprocess import Popen, PIPE
        for input in self.get_input(variation):
            args = ['uglifyjs']
            try:
                args = args + settings.UGLIFIER_OPTIONS
            except __HOLE__:
                pass
            try:
                cmd = Popen(args,
                            stdin=PIPE, stdout=PIPE, stderr=PIPE,
                            universal_newlines=True)
                output, error = cmd.communicate(smart_str(input))
                assert cmd.wait() == 0, 'Command returned bad result:\n%s' % error
                yield output.decode('utf-8')
            except Exception, e:
                raise ValueError("Failed to run UglifyJs. "
                    "Please make sure you have Node.js and UglifyJS installed "
                    "and that it's in your PATH.\n"
                    "Error was: %s" % e)
dataset/ETHPy150Open adieu/django-mediagenerator/mediagenerator/filters/uglifier.py/Uglifier.get_output