Pārlūkot izejas kodu

Make that line a bit shorter

tags/v0.1^2
Ben Kurtovic pirms 12 gadiem
vecāks
revīzija
4895ad18e3
1 mainītis faili ar 2 papildinājumiem un 1 dzēšanām
  1. +2
    -1
      earwigbot/tasks/afc_copyvios.py

+ 2
- 1
earwigbot/tasks/afc_copyvios.py Parādīt failu

@@ -93,7 +93,8 @@ class AFCCopyvios(Task):
confirm = page.copyvio_compare(url, self.min_confidence)
new_conf = "{0}%".format(round(confirm.confidence * 100, 2))
if not confirm.violation:
msg = u"A violation was detected in [[{0}]], but couldn't be confirmed. It may have just been edited (best: {1} at {2} -> {3} confidence)"
msg = u"A violation was detected in [[{0}]], but couldn't be confirmed."
msg += u" It may have just been edited (best: {1} at {2} -> {3} confidence)"
self.logger.info(msg.format(title, url, orig_conf, new_conf))

safeurl = quote(url.encode("utf8"), safe="/:").decode("utf8")


Notiek ielāde…
Atcelt
Saglabāt