jenkins-bot has submitted this change and it was merged. (
https://gerrit.wikimedia.org/r/287412 )
Change subject: [PEP8] Keep lines beneath 80 chars
......................................................................
[PEP8] Keep lines beneath 80 chars
- pep8ify some E241
Change-Id: I84bc777c682e8778063690cd0978e998f6be5144
---
M scripts/clean_sandbox.py
M scripts/commons_link.py
M scripts/coordinate_import.py
M scripts/cosmetic_changes.py
M scripts/delete.py
M scripts/freebasemappingupload.py
M scripts/harvest_template.py
M scripts/illustrate_wikidata.py
M scripts/image.py
M scripts/interwiki.py
M scripts/interwikidata.py
M scripts/lonelypages.py
M scripts/welcome.py
13 files changed, 118 insertions(+), 89 deletions(-)
Approvals:
Dalba: Looks good to me, approved
jenkins-bot: Verified
diff --git a/scripts/clean_sandbox.py b/scripts/clean_sandbox.py
index 6dfe4e1..5b6b409 100755
--- a/scripts/clean_sandbox.py
+++ b/scripts/clean_sandbox.py
@@ -29,9 +29,9 @@
# (C) Wikipedian, 2006-2007
# (C) Andre Engels, 2007
# (C) Siebrand Mazeland, 2007
-# (C) xqt, 2009-2014
+# (C) xqt, 2009-2017
# (C) Dr. Trigon, 2012
-# (C) Pywikibot team, 2012-2014
+# (C) Pywikibot team, 2012-2017
#
# Distributed under the terms of the MIT license.
#
@@ -57,7 +57,7 @@
u'حيتم تنضيفها\nاوتوماتيكيا كل 12 ساعه. -->',
'az': u'<!--- LÜTFƏN, BU SƏTRƏ TOXUNMAYIN --->\n{{Qaralama
dəftəri}}\n'
u'<!-- AŞAĞIDAKI XƏTTİN ALTINDAN YAZA BİLƏRSİNİZ --->',
- 'bar': u'{{Bitte erst NACH dieser Zeile schreiben!
(Begrüßungskasten)}}\r\n',
+ 'bar': '{{Bitte erst NACH dieser Zeile schreiben!
(Begrüßungskasten)}}\n',
'cs': u'{{subst:/uhrabat}}',
'da': u'{{subst:Sandkasse tekst}}',
'de': u'{{subst:Wikipedia:Spielwiese/Vorlage}}',
@@ -70,7 +70,8 @@
'fi': u'{{subst:Hiekka}}',
'he': u'{{ארגז חול}}\n<!-- נא לערוך מתחת לשורה זו בלבד, תודה.
-->',
'id': u'{{Bakpasir}}\n<!-- Uji coba dilakukan di baris di bawah ini
-->',
- 'it': u'{{sandbox}}<!-- Scrivi SOTTO questa riga senza cancellarla.
Grazie. -->',
+ 'it': '{{sandbox}}'
+ '<!-- Scrivi SOTTO questa riga senza cancellarla. Grazie. -->',
'ja': u'{{subst:サンドボックス}}',
'ko': u'{{연습장 안내문}}',
'ksh': u'{{subst:/Schablon}}',
@@ -86,9 +87,12 @@
'no': u'{{Sandkasse}}\n<!-- VENNLIGST EKSPERIMENTER NEDENFOR DENNE
'
u'SKJULTE TEKSTLINJEN! SANDKASSEMALEN {{Sandkasse}} SKAL IKKE '
u'FJERNES! -->}}',
- 'pl': u'{{Prosimy - NIE ZMIENIAJ, NIE KASUJ, NIE PRZENOŚ tej linijki -
pisz niżej}}',
- 'pt': u'<!--não apague esta linha-->{{página de testes}}<!--não
apagar-->\r\n',
- 'ru': u'{{/Пишите ниже}}\n<!-- Не удаляйте, пожалуйста, эту строку,
тестируйте ниже -->',
+ 'pl': '{{Prosimy - NIE ZMIENIAJ, NIE KASUJ, NIE PRZENOŚ tej linijki
'
+ '- pisz niżej}}',
+ 'pt': '<!--não apague esta linha-->'
+ '{{página de testes}}<!--não apagar-->\n',
+ 'ru': '{{/Пишите ниже}}\n'
+ '<!-- Не удаляйте, пожалуйста, эту строку, тестируйте ниже -->',
'simple': u'{{subst:/Text}}',
'sco': u'{{subst:Saundbox}}',
'sr': u'{{песак}}\n<!-- Молимо, испробавајте испод ове линије. Хвала.
-->',
@@ -96,7 +100,7 @@
'th': u'{{กระบะทราย}}\n<!-- กรุณาอย่าแก้ไขบรรทัดนี้ ขอบคุณครับ/ค่ะ --
'
u'Please leave this line as they are. Thank you! -->',
'tr': u'{{/Bu satırı değiştirmeden bırakın}}',
- 'zh': u'{{subst:User:Sz-iwbot/sandbox}}\r\n',
+ 'zh': '{{subst:User:Sz-iwbot/sandbox}}\n',
}
sandboxTitle = {
@@ -139,7 +143,7 @@
# This is required for the text that is shown when you run this script
# with the parameter -help.
docuReplacements = {
- '¶ms;': pagegenerators.parameterHelp,
+ '¶ms;': pagegenerators.parameterHelp,
}
diff --git a/scripts/commons_link.py b/scripts/commons_link.py
index f83e20f..bdeb2b8 100755
--- a/scripts/commons_link.py
+++ b/scripts/commons_link.py
@@ -24,7 +24,7 @@
"""
#
# (C) Leonardo Gregianin, 2006
-# (C) Pywikibot team, 2007-2014
+# (C) Pywikibot team, 2007-2016
#
# Distributed under the terms of the MIT license.
#
@@ -88,16 +88,18 @@
if s or s2:
pywikibot.output(u'** Already done.')
else:
- cats = textlib.getCategoryLinks(text, site=page.site)
+ cats = textlib.getCategoryLinks(text,
+ site=page.site)
text = textlib.replaceCategoryLinks(
u'%s{{commons%s|%s}}'
% (text, ('', 'cat')[catmode],
pagetitle),
cats, site=page.site)
- comment = i18n.twtranslate(page.site,
-
'commons_link%s-template-added'
- % ('',
'-cat')[catmode])
+ comment = i18n.twtranslate(
+ page.site, 'commons_link%s-template-added'
+ % ('', '-cat')[catmode])
try:
- self.userPut(page, oldText, text, summary=comment)
+ self.userPut(page, oldText, text,
+ summary=comment)
except pywikibot.EditConflict:
pywikibot.output(
u'Skipping %s because of edit conflict'
diff --git a/scripts/coordinate_import.py b/scripts/coordinate_import.py
index 301ff7d..39d6fec 100755
--- a/scripts/coordinate_import.py
+++ b/scripts/coordinate_import.py
@@ -11,7 +11,7 @@
This will work on all pages in the category "coordinates not on Wikidata" and
will import the coordinates on these pages to Wikidata.
-The data from the "GeoData" extension
(
https://www.mediawiki.org/wiki/Extension:GeoData)
+The data from the "GeoData" extension (
https://www.mediawiki.org/wiki/GeoData)
is used so that extension has to be setup properly. You can look at the
[[Special:Nearby]] page on your local Wiki to see if it's populated.
@@ -24,7 +24,7 @@
"""
#
# (C) Multichill, 2014
-# (C) Pywikibot team, 2013-2015
+# (C) Pywikibot team, 2013-2016
#
# Distributed under the terms of MIT License.
#
diff --git a/scripts/cosmetic_changes.py b/scripts/cosmetic_changes.py
index c79061d..daca78b 100644
--- a/scripts/cosmetic_changes.py
+++ b/scripts/cosmetic_changes.py
@@ -118,7 +118,8 @@
elif ignore_mode == 'match':
options['ignore'] = cosmetic_changes.CANCEL_MATCH
else:
- raise ValueError('Unknown ignore mode
"{0}"!'.format(ignore_mode))
+ raise ValueError(
+ 'Unknown ignore mode "{0}"!'.format(ignore_mode))
else:
genFactory.handleArg(arg)
diff --git a/scripts/delete.py b/scripts/delete.py
index 4fbe618..03ca134 100755
--- a/scripts/delete.py
+++ b/scripts/delete.py
@@ -274,7 +274,8 @@
summary = i18n.twtranslate(mysite, 'delete-from-category',
{'page': pageName})
elif arg.startswith('-links'):
- summary = i18n.twtranslate(mysite, un +
'delete-linked-pages',
+ summary = i18n.twtranslate(mysite,
+ un + 'delete-linked-pages',
{'page': pageName})
elif arg.startswith('-ref'):
summary = i18n.twtranslate(mysite, 'delete-referring-pages',
@@ -291,7 +292,8 @@
if generator:
if summary is None:
summary = pywikibot.input(u'Enter a reason for the %sdeletion:'
- % ['',
'un'][options.get('undelete', False)])
+ % ['',
'un'][options.get('undelete',
+ False)])
bot = DeletionRobot(generator, summary, **options)
bot.run()
return True
diff --git a/scripts/freebasemappingupload.py b/scripts/freebasemappingupload.py
index 9ed598f..f3d74b5 100755
--- a/scripts/freebasemappingupload.py
+++ b/scripts/freebasemappingupload.py
@@ -15,7 +15,7 @@
"""
#
# (C) Denny Vrandecic, 2013
-# (C) Pywikibot team, 2013-2014
+# (C) Pywikibot team, 2013-2016
#
# Distributed under the terms of the MIT license.
#
@@ -50,10 +50,13 @@
self.claim = pywikibot.Claim(self.repo, 'P646') # freebase mapping
# And sources!
self.statedin = pywikibot.Claim(self.repo, 'P248') # stated in
- freebasedumpitem = pywikibot.ItemPage(self.repo, 'Q15241312') # Freebase
data dump
+ # Freebase data dump
+ freebasedumpitem = pywikibot.ItemPage(self.repo, 'Q15241312')
self.statedin.setTarget(freebasedumpitem)
- self.dateofpub = pywikibot.Claim(self.repo, 'P577') # date of
publication
- oct28 = pywikibot.WbTime(site=self.repo, year=2013, month=10, day=28,
precision='day')
+ # date of publication
+ self.dateofpub = pywikibot.Claim(self.repo, 'P577')
+ oct28 = pywikibot.WbTime(site=self.repo, year=2013, month=10, day=28,
+ precision='day')
self.dateofpub.setTarget(oct28)
for line in gzip.open(self.filename):
diff --git a/scripts/harvest_template.py b/scripts/harvest_template.py
index 569b25f..62d24c6 100755
--- a/scripts/harvest_template.py
+++ b/scripts/harvest_template.py
@@ -25,7 +25,7 @@
"""
#
# (C) Multichill, Amir, 2013
-# (C) Pywikibot team, 2013-2014
+# (C) Pywikibot team, 2013-2017
#
# Distributed under the terms of MIT License.
#
@@ -91,7 +91,8 @@
if temp.isRedirectPage():
temp = temp.getRedirectTarget()
titles = [page.title(withNamespace=False)
- for page in temp.getReferences(redirectsOnly=True, namespaces=[10],
+ for page in temp.getReferences(redirectsOnly=True,
+ namespaces=[10],
follow_redirects=False)]
titles.append(temp.title(withNamespace=False))
return titles
@@ -180,7 +181,8 @@
continue
link_text = match.group(1)
- linked_item = self._template_link_target(item,
link_text)
+ linked_item = self._template_link_target(
+ item, link_text)
if not linked_item:
continue
@@ -188,16 +190,19 @@
elif claim.type in ('string',
'external-id'):
claim.setTarget(value.strip())
elif claim.type == 'commonsMedia':
- commonssite = pywikibot.Site("commons",
"commons")
- imagelink = pywikibot.Link(value, source=commonssite,
+ commonssite = pywikibot.Site('commons',
+ 'commons')
+ imagelink = pywikibot.Link(value,
+ source=commonssite,
defaultNamespace=6)
image = pywikibot.FilePage(imagelink)
if image.isRedirectPage():
- image =
pywikibot.FilePage(image.getRedirectTarget())
+ image = pywikibot.FilePage(
+ image.getRedirectTarget())
if not image.exists():
pywikibot.output(
- '[[%s]] doesn\'t exist so I can\'t
link to it'
- % (image.title(),))
+ "{0} doesn't exist. I can't link to
it"
+ ''.format(image.title(asLink=True)))
continue
claim.setTarget(image)
else:
@@ -206,8 +211,9 @@
% claim.type)
continue
- pywikibot.output('Adding %s --> %s'
- % (claim.getID(), claim.getTarget()))
+ pywikibot.output(
+ 'Adding %s --> %s'
+ % (claim.getID(), claim.getTarget()))
item.addClaim(claim)
# A generator might yield pages from multiple sites
source = self.getSource(page.site)
@@ -245,7 +251,8 @@
commandline_arguments.append(arg)
if not template_title:
- pywikibot.error('Please specify either -template or -transcludes
argument')
+ pywikibot.error(
+ 'Please specify either -template or -transcludes argument')
return
if len(commandline_arguments) % 2:
diff --git a/scripts/illustrate_wikidata.py b/scripts/illustrate_wikidata.py
index 7fa88bd..fcf225a 100755
--- a/scripts/illustrate_wikidata.py
+++ b/scripts/illustrate_wikidata.py
@@ -14,7 +14,7 @@
"""
#
# (C) Multichill, 2014
-# (C) Pywikibot team, 2013-2014
+# (C) Pywikibot team, 2013-2016
#
# Distributed under the terms of MIT License.
#
@@ -38,10 +38,10 @@
"""
Constructor.
- Arguments:
- * generator - A generator that yields Page objects.
- * wdproperty - The property to add. Should be of type commonsMedia
-
+ @param generator: A generator that yields Page objects
+ @type generator: generator
+ @param wdproperty: The property to add. Should be of type commonsMedia
+ @type wdproperty: str
"""
super(IllustrateRobot, self).__init__()
self.generator = pagegenerators.PreloadingGenerator(generator)
@@ -71,17 +71,20 @@
newclaim = pywikibot.Claim(self.repo, self.wdproperty)
commonssite = pywikibot.Site("commons", "commons")
- imagelink = pywikibot.Link(imagename, source=commonssite, defaultNamespace=6)
+ imagelink = pywikibot.Link(imagename, source=commonssite,
+ defaultNamespace=6)
image = pywikibot.FilePage(imagelink)
if image.isRedirectPage():
image = pywikibot.FilePage(image.getRedirectTarget())
if not image.exists():
- pywikibot.output('[[%s]] doesn\'t exist so I can\'t link to
it' % (image.title(),))
+ pywikibot.output('[[%s]] doesn\'t exist so I can\'t link to
it'
+ % (image.title(),))
return
newclaim.setTarget(image)
- pywikibot.output('Adding %s --> %s' % (newclaim.getID(),
newclaim.getTarget()))
+ pywikibot.output('Adding %s --> %s'
+ % (newclaim.getID(), newclaim.getTarget()))
item.addClaim(newclaim)
# A generator might yield pages from multiple sites
diff --git a/scripts/image.py b/scripts/image.py
index 59464b0..d3f8958 100755
--- a/scripts/image.py
+++ b/scripts/image.py
@@ -143,7 +143,8 @@
options['loose'] = True
elif arg.startswith('-summary'):
if len(arg) == len('-summary'):
- options['summary'] = pywikibot.input(u'Choose an edit
summary: ')
+ options['summary'] = pywikibot.input(
+ 'Choose an edit summary: ')
else:
options['summary'] = arg[len('-summary:'):]
elif old_image:
diff --git a/scripts/interwiki.py b/scripts/interwiki.py
index f5c5db3..5a9779d 100755
--- a/scripts/interwiki.py
+++ b/scripts/interwiki.py
@@ -399,7 +399,7 @@
u'/doc'),
'bn': (u'documentation', u'/doc'),
'ca': (u'ús de la plantilla', u'/ús'),
- 'cs': (u'dokumentace', u'/doc'),
+ 'cs': ('dokumentace', '/doc'),
'da': (u'dokumentation', u'/doc'),
'de': (u'dokumentation', u'/Meta'),
'dsb': ([u'dokumentacija', u'doc'],
u'/Dokumentacija'),
@@ -420,17 +420,17 @@
u'/Documentation'),
'hsb': ([u'dokumentacija', u'doc'],
u'/Dokumentacija'),
'hu': (u'sablondokumentáció', u'/doc'),
- 'id': (u'template doc', u'/doc'),
+ 'id': ('template doc', '/doc'),
'ilo': (u'documentation', u'/doc'),
'ja': (u'documentation', u'/doc'),
- 'ka': (u'თარგის ინფო', u'/ინფო'),
+ 'ka': ('თარგის ინფო', '/ინფო'),
'ko': (u'documentation', u'/설명문서'),
'ms': (u'documentation', u'/doc'),
'no': (u'dokumentasjon', u'/dok'),
'nn': (u'dokumentasjon', u'/dok'),
- 'pl': (u'dokumentacja', u'/opis'),
+ 'pl': ('dokumentacja', '/opis'),
'pt': ([u'documentação', u'/doc'], u'/doc'),
- 'ro': (u'documentaţie', u'/doc'),
+ 'ro': ('documentaţie', '/doc'),
'ru': (u'doc', u'/doc'),
'simple': ([u'documentation',
u'template documentation',
diff --git a/scripts/interwikidata.py b/scripts/interwikidata.py
index 50ee841..d5910d6 100644
--- a/scripts/interwikidata.py
+++ b/scripts/interwikidata.py
@@ -38,7 +38,7 @@
# This is required for the text that is shown when you run this script
# with the parameter -help.
docuReplacements = {
- '¶ms;': pagegenerators.parameterHelp,
+ '¶ms;': pagegenerators.parameterHelp,
}
# Allowed namespaces. main, project, template, category
diff --git a/scripts/lonelypages.py b/scripts/lonelypages.py
index ef2f0e4..54ced1a 100755
--- a/scripts/lonelypages.py
+++ b/scripts/lonelypages.py
@@ -53,7 +53,7 @@
# This is required for the text that is shown when you run this script
# with the parameter -help.
docuReplacements = {
- '¶ms;': pagegenerators.parameterHelp,
+ '¶ms;': pagegenerators.parameterHelp,
}
diff --git a/scripts/welcome.py b/scripts/welcome.py
index 0f2f908..c1cc299 100755
--- a/scripts/welcome.py
+++ b/scripts/welcome.py
@@ -165,8 +165,8 @@
# (C) Filnik, 2007-2011
# (C) Daniel Herding, 2007
# (C) Alex Shih-Han Lin, 2009-2010
-# (C) xqt, 2009-2016
-# (C) Pywikibot team, 2008-2016
+# (C) xqt, 2009-2017
+# (C) Pywikibot team, 2008-2017
#
# Distributed under the terms of the MIT license.
#
@@ -210,7 +210,8 @@
# ATTENTION: Projects not listed won't write a log to the wiki.
logbook = {
'ar': u'Project:سجل الترحيب',
- 'fr': u'Wikipedia:Prise de décision/Accueil automatique des nouveaux par
un robot/log',
+ 'fr': ('Wikipedia:Prise de décision/'
+ 'Accueil automatique des nouveaux par un robot/log'),
'ga': u'Project:Log fáilte',
'it': u'Project:Benvenuto Bot/Log',
'ja': u'利用者:Alexbot/Welcomebotログ',
@@ -290,7 +291,8 @@
'ga': u'Project:Log fáilte/Drochainmneacha',
'it': u'Project:Benvenuto_Bot/Report',
'ja': u'利用者:Alexbot/report',
- 'nl': u'Project:Verzoekpagina voor moderatoren/RegBlok/Te controleren
gebruikersnamen',
+ 'nl': ('Project:Verzoekpagina voor moderatoren'
+ '/RegBlok/Te controleren gebruikersnamen'),
'no': u'Bruker:JhsBot II/Rapport',
'pdc': u'Benutzer:Xqt/Report',
'ru': u'Участник:LatitudeBot/Рапорт',
@@ -397,8 +399,6 @@
# Ok, that's all. What is below, is the rest of code, now the code is fixed
# and it will run correctly in your project ;)
############################################################################
-############################################################################
-############################################################################
class FilenameNotSet(pywikibot.Error):
@@ -410,14 +410,14 @@
"""Container class for global settings."""
- attachEditCount = 1 # number of edits that an user required to be welcomed
- dumpToLog = 15 # number of users that are required to add the log :)
+ attachEditCount = 1 # edit count that an user required to be welcomed
+ dumpToLog = 15 # number of users that are required to add the log
offset = None # skip users newer than that timestamp
timeoffset = 0 # skip users newer than # minutes
recursive = True # define if the Bot is recursive or not
timeRecur = 3600 # how much time (sec.) the bot sleeps before restart
makeWelcomeLog = True # create the welcome log or not
- confirm = False # should bot ask to add username to bad-username list
+ confirm = False # should bot ask to add user to bad-username list
welcomeAuto = False # should bot welcome auto-created users
filtBadName = False # check if the username is ok or not
randomSign = False # should signature be random or not
@@ -463,37 +463,40 @@
# initialize blacklist
if not hasattr(self, '_blacklist') or force:
elenco = [
- ' ano', ' anus', 'anal ', 'babies',
'baldracca', 'balle', 'bastardo',
- 'bestiali', 'bestiale', 'bastarda',
'b.i.t.c.h.', 'bitch', 'boobie',
- 'bordello', 'breast', 'cacata', 'cacca',
'cachapera', 'cagata',
- 'cane', 'cazz', 'cazzo', 'cazzata',
'chiavare', 'chiavata', 'chick',
- 'christ ', 'cristo', 'clitoride',
'coione', 'cojdioonear', 'cojones',
- 'cojo', 'coglione', 'coglioni',
'cornuto', 'cula', 'culatone',
+ ' ano', ' anus', 'anal ', 'babies',
'baldracca', 'balle',
+ 'bastardo', 'bestiali', 'bestiale',
'bastarda', 'b.i.t.c.h.',
+ 'bitch', 'boobie', 'bordello', 'breast',
'cacata', 'cacca',
+ 'cachapera', 'cagata', 'cane', 'cazz',
'cazzo', 'cazzata',
+ 'chiavare', 'chiavata', 'chick', 'christ
', 'cristo',
+ 'clitoride', 'coione', 'cojdioonear',
'cojones', 'cojo',
+ 'coglione', 'coglioni', 'cornuto',
'cula', 'culatone',
'culattone', 'culo', 'deficiente',
'deficente', 'dio', 'die ',
- 'died ', 'ditalino', 'ejackulate',
'enculer', 'eroticunt', 'fanculo',
- 'fellatio', 'fica ', 'ficken', 'figa',
'sfiga', 'fottere', 'fotter',
- 'fottuto', 'fuck', 'f.u.c.k.',
"funkyass",
- 'gay', 'hentai.com', 'horne', 'horney',
'virgin', 'hotties', 'idiot',
- '(a)alice.it'.it', 'incest', 'jesus', 'gesu',
'gesù', 'kazzo', 'kill',
- 'leccaculo', 'lesbian', 'lesbica',
'lesbo', 'masturbazione',
- 'masturbare', 'masturbo', 'merda',
'merdata', 'merdoso', 'mignotta',
- 'minchia', 'minkia', 'minchione', 'mona',
'nudo', 'nuda', 'nudi',
- 'oral', 'sex', 'orgasmso', 'porc',
'pompa', 'pompino', 'porno',
- 'puttana', 'puzza', 'puzzone',
"racchia", 'sborone', 'sborrone',
- 'sborata', 'sborolata', 'sboro',
'scopata', 'scopare', 'scroto',
- 'scrotum', 'sega', 'sesso', 'shit',
'shiz', 's.h.i.t.', 'sadomaso',
- 'sodomist', 'stronzata', 'stronzo',
'succhiamelo', 'succhiacazzi',
- 'testicol', 'troia', 'universetoday.net',
'vaffanculo', 'vagina',
- 'vibrator', "vacca", 'yiddiot',
"zoccola",
+ 'died ', 'ditalino', 'ejackulate',
'enculer', 'eroticunt',
+ 'fanculo', 'fellatio', 'fica ', 'ficken',
'figa', 'sfiga',
+ 'fottere', 'fotter', 'fottuto', 'fuck',
'f.u.c.k.', 'funkyass',
+ 'gay', 'hentai.com', 'horne', 'horney',
'virgin', 'hotties',
+ 'idiot', '(a)alice.it'.it', 'incest', 'jesus',
'gesu', 'gesù',
+ 'kazzo', 'kill', 'leccaculo', 'lesbian',
'lesbica', 'lesbo',
+ 'masturbazione', 'masturbare', 'masturbo',
'merda', 'merdata',
+ 'merdoso', 'mignotta', 'minchia',
'minkia', 'minchione',
+ 'mona', 'nudo', 'nuda', 'nudi',
'oral', 'sex', 'orgasmso',
+ 'porc', 'pompa', 'pompino', 'porno',
'puttana', 'puzza',
+ 'puzzone', 'racchia', 'sborone',
'sborrone', 'sborata',
+ 'sborolata', 'sboro', 'scopata',
'scopare', 'scroto',
+ 'scrotum', 'sega', 'sesso', 'shit',
'shiz', 's.h.i.t.',
+ 'sadomaso', 'sodomist', 'stronzata',
'stronzo', 'succhiamelo',
+ 'succhiacazzi', 'testicol', 'troia',
'universetoday.net',
+ 'vaffanculo', 'vagina', 'vibrator',
'vacca', 'yiddiot',
+ 'zoccola',
]
elenco_others = [
'@', ".com", ".sex", ".org",
".uk", ".en", ".it", "admin",
"administrator", "amministratore",
'(a)yahoo.com'com', '(a)alice.com'com',
- "amministratrice", "burocrate",
"checkuser", "developer", "http://",
- "jimbo", "mediawiki", "on wheals", "on
wheal", "on wheel", "planante",
- "razinger", "sysop", "troll",
"vandal", " v.f. ", "v. fighter",
- "vandal f.", "vandal fighter", 'wales jimmy',
"wheels", "wales",
- "www.",
+ 'amministratrice', 'burocrate', 'checkuser',
'developer',
+ 'http://', 'jimbo', 'mediawiki', 'on
wheals', 'on wheal',
+ 'on wheel', 'planante', 'razinger',
'sysop', 'troll', 'vandal',
+ ' v.f. ', 'v. fighter', 'vandal f.', 'vandal
fighter',
+ 'wales jimmy', 'wheels', 'wales',
'www.',
]
# blacklist from wikipage
@@ -587,9 +590,10 @@
if rep_page.exists():
text_get = rep_page.get()
else:
- text_get = u'This is a report page for the Bad-username, please
translate me. --~~~'
+ text_get = ('This is a report page for the Bad-username, '
+ 'please translate me. --~~~')
pos = 0
- # The talk page includes "_" between the two names, in this way i
+ # The talk page includes "_" between the two names, in this way
# replace them to " ".
for usrna in self._BAQueue:
username = pywikibot.url2link(usrna, self.site, self.site)
@@ -1005,7 +1009,9 @@
else:
import cPickle
with open(filename, 'wb') as f:
- cPickle.dump(bot.welcomed_users, f, protocol=config.pickle_protocol)
+ cPickle.dump(bot.welcomed_users, f,
+ protocol=config.pickle_protocol)
+
if __name__ == "__main__":
main()
--
To view, visit
https://gerrit.wikimedia.org/r/287412
To unsubscribe, visit
https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I84bc777c682e8778063690cd0978e998f6be5144
Gerrit-PatchSet: 15
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Xqt <info(a)gno.de>
Gerrit-Reviewer: Dalba <dalba.wiki(a)gmail.com>
Gerrit-Reviewer: Darthbhyrava <hbhyrava(a)gmail.com>
Gerrit-Reviewer: John Vandenberg <jayvdb(a)gmail.com>
Gerrit-Reviewer: Lokal Profil <lokal.profil(a)gmail.com>
Gerrit-Reviewer: Xqt <info(a)gno.de>
Gerrit-Reviewer: jenkins-bot <>