Xqt has submitted this change and it was merged.
Change subject: [PEP8] changes
......................................................................
[PEP8] changes
Change-Id: I72da61737a13df7060d08ccb0718f378bd355610
---
M unusedfiles.py
1 file changed, 6 insertions(+), 16 deletions(-)
Approvals:
Xqt: Looks good to me, approved
diff --git a/unusedfiles.py b/unusedfiles.py
index 5cb087f..16b8c35 100644
--- a/unusedfiles.py
+++ b/unusedfiles.py
@@ -24,12 +24,6 @@
import pagegenerators
import sys
-#***** SETTINGS *******#
-# #
-# - EDIT BELOW - #
-# #
-#**********************#
-
comment = {
'ar': u'صور للاستبعاد',
'en': u'images for elimination',
@@ -37,28 +31,23 @@
'he': u'תמונות להסרה',
'it': u'Bot: segnalo immagine orfana da eliminare',
'pt': u'Bot: marcação de imagens para eliminação',
- }
+}
template_to_the_image = {
'en': u'{{subst:No-use2}}',
'it': u'{{immagine orfana}}',
'fa': u'{{تصاویر بدون استفاده}}',
- }
+}
template_to_the_user = {
'en': u'\n\n{{img-sem-uso|%(title)s}}',
'fa': u'\n\n{{جا:اخطار به کاربر برای تصاویر بدون
استفاده|%(title)s}}--~~~~',
'it': u'\n\n{{Utente:Filbot/Immagine orfana}}',
- }
+}
except_text = {
'en': u'<table id="mw_metadata"
class="mw_metadata">',
'it': u'<table id="mw_metadata"
class="mw_metadata">',
- }
+}
-#***** SETTINGS *******#
-# #
-# - EDIT ABOVE - #
-# #
-#**********************#
def appendtext(page, apptext):
global always
@@ -85,6 +74,7 @@
always = True
if always or choice == 'y':
page.put(text, pywikibot.translate(pywikibot.getSite(), comment))
+
def main():
global always
@@ -116,7 +106,7 @@
pywikibot.output(u"%s done already"
% page.title(asLink=True))
continue
- appendtext(page, u"\n\n"+template_image)
+ appendtext(page, u"\n\n" + template_image)
uploader = page.getFileVersionHistory().pop()[1]
usertalkname = u'User Talk:%s' % uploader
usertalkpage = pywikibot.Page(mysite, usertalkname)
--
To view, visit
https://gerrit.wikimedia.org/r/98367
To unsubscribe, visit
https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I72da61737a13df7060d08ccb0718f378bd355610
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/compat
Gerrit-Branch: master
Gerrit-Owner: Xqt <info(a)gno.de>
Gerrit-Reviewer: Xqt <info(a)gno.de>
Gerrit-Reviewer: jenkins-bot