def suffix_from_filename(self, filename):
        if filename is None:
            return u''
        try:
            return REQUIREMENTS_REGEXP.findall(filename)[0]
        except IndexError:
            print('Cannot init new environment using %r filename.' % filename)
            sys.exit(1)
dataset/ETHPy150Open playpauseandstop/tddspry/tests/bootstrap.py/Environment.suffix_from_filename/original