Estava vindo do meu uso de cores. Eu estava usando as seguintes strings para colorir meu texto:
class colors:
HEADER = '3[95m'
OKBLUE = '3[94m'
OKGREEN = '3[92m'
WARNING = '3[93m'
FAIL = '3[91m'
ENDC = '3[0m'
Adicionei
e %code% caracteres e agora funciona! %code%2
1
class colors:
HEADER = 'class colors:
HEADER = '3[95m'
OKBLUE = '3[94m'
OKGREEN = '3[92m'
WARNING = '3[93m'
FAIL = '3[91m'
ENDC = '3[0m'
13[95mclass colors:
HEADER = '%pre%13[95m%pre%2'
OKBLUE = '%pre%13[94m%pre%2'
OKGREEN = '%pre%13[92m%pre%2'
WARNING = '%pre%13[93m%pre%2'
FAIL = '%pre%13[91m%pre%2'
ENDC = '%pre%13[0m%pre%2'
2'
OKBLUE = '%pre%13[94m%pre%2'
OKGREEN = '%pre%13[92m%pre%2'
WARNING = '%pre%13[93m%pre%2'
FAIL = '%pre%13[91m%pre%2'
ENDC = '%pre%13[0m%pre%2'
Post de solução relacionada: link