def split_format_specifiers(specifiers):
    'Split format specifiers between numeric (Qt) and others (strprintf)'
    numeric = []
    other = []
    for s in specifiers:
        if (s in {'1', '2', '3', '4', '5', '6', '7', '8', '9'}):
            numeric.append(s)
        else:
            other.append(s)
    if numeric:
        other = []
    return (set(numeric), other)
Split format specifiers between numeric (Qt) and others (strprintf)
def split_format_specifiers(specifiers):
    
    numeric = []
    other = []
    for s in specifiers:
        if (s in {'1', '2', '3', '4', '5', '6', '7', '8', '9'}):
            numeric.append(s)
        else:
            other.append(s)
    if numeric:
        other = []
    return (set(numeric), other)