parameters: (specifiers)
return_statement: return set(numeric), other
docstring: Split format specifiers between numeric (Qt) and others (strprintf)
docstring_summary: Split format specifiers between numeric (Qt) and others (strprintf)
docstring_tokens: Split format specifiers between numeric ( Qt ) and others ( strprintf )
function: 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 both numeric format specifiers and "others" are used, assume we're dealing
      # with a Qt-formatted message. In the case of Qt formatting (see https://doc.qt.io/qt-5/qstring.html#arg)
      # only numeric formats are replaced at all. This means "(percentage: %1%)" is valid, without needing
      # any kind of escaping that would be necessary for strprintf. Without this, this function
      # would wrongly detect '%)' as a printf format specifier.
      if numeric:
          other = []
  
      # numeric (Qt) can be present in any order, others (strprintf) must be in
      # specified order
      return set(numeric), other
function_tokens: 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 both numeric format specifiers and "others" are used, assume we're dealing # with a Qt-formatted message. In the case of Qt formatting (see https://doc.qt.io/qt-5/qstring.html#arg) # only numeric formats are replaced at all. This means "(percentage: %1%)" is valid, without needing # any kind of escaping that would be necessary for strprintf. Without this, this function # would wrongly detect '%)' as a printf format specifier. if numeric : other = [ ] # numeric (Qt) can be present in any order, others (strprintf) must be in # specified order return set ( numeric ) , other