@classmethod
def _split_strip(cls, line):
    """
        Separate the -p<num> option from the patch name

        >>> PatchSeries._split_strip("asdf -p1")
        ('asdf', 1)
        >>> PatchSeries._split_strip("a/nice/patch")
        ('a/nice/patch', None)
        >>> PatchSeries._split_strip("asdf foo")
        ('asdf foo', None)
        """
    patch = line
    strip = None
    split = line.rsplit(None, 1)
    if len(split) > 1:
        m = cls.level_re.match(split[1])
        if m:
            patch = split[0]
            strip = int(m.group('level'))
    return patch, strip
