def fromstring(s):
    ps = PatchSet(StringIO(s))
    if ps.errors == 0:
        return ps
    return False
Parse text string and return PatchSet()
dataset/ETHPy150Open ensime/ensime-sublime/patch.py/fromstring