

def get_wildcards(self, s):
    backslash = False
    i = 0
    chars = []
    for c in s:
        if backslash:
            backslash = False
            chars.append(c)
            continue
        i += 1
        if (c == '\\'):
            backslash = True
        elif (c == '*'):
            chars.append(self.Asterisk())
        elif (c == '?'):
            chars.append(self.QuestionMark())
        else:
            chars.append(c)
    if backslash:
        chars.append('\\')
    return chars

dataset/ETHPy150Open tow/sunburnt/sunburnt/strings.py WildcardString.get_wildcards/original