Utente:Sirbot/Script: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
Riga 46:
continue
newTalkText = re.sub('\|\n? *?[Ii]mmagini= *?\n', '|[Ii]mmagini=d\n', talkText)
wikipedia.showDiff(if talkText, != newTalkText):
if not always: wikipedia.showDiff(talkText, newTalkText)
if not always:
choice = wikipedia.inputChoice(u"Apply the changes?", ['Yes', 'No', 'All'], ['y', 'N', 'a'], 'N')
else:
choice = 'y'
if choice in ['A', 'a']:
always = True
choice = 'y'
if choice in ['Y', 'y']:
try:
page.put(newTalkText, u'Bot: Non ci sono immagini: valutazione "d"')
except Wikipedia.Error, e:
wikipedia.output(e) # Print the error and skip
continue
if __name__ == "__main__":