@staticmethod
    def fromphases(p):
        for scm, phasename in p:
            try:
                parserforphase = inputparser.fromphase(phasename)
                if parserforphase.scm() == scm:
                    return parserforphase
                else:
                    continue
            except __HOLE__:
                pass
        raise NotImplementedError("Couldn't find phase matching"
                                  " conditions")
dataset/ETHPy150Open charignon/hooklib/hooklib_input.py/inputparser.fromphases