def get_output(self, cmd):
        try:
            fnull = open(os.devnull, "w")
            process = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=fnull)
            fnull.close()
        except (__HOLE__, EnvironmentError):  # can't use FileNotFoundError in Python 2
            self.logger.debug("Subprocess failed.")
            return False
        out, err = process.communicate()
        return out
dataset/ETHPy150Open richrd/suplemon/suplemon/modules/linter.py/BaseLint.get_output