jenkins-bot has submitted this change and it was merged.
Change subject: dates + typo fix
......................................................................
dates + typo fix
Change-Id: Ia38dc2a38abf5731c9676991946f4c0a2d3198b3
---
M README-conversion.txt
M generate_user_files.py
M pwb.py
3 files changed, 3 insertions(+), 3 deletions(-)
Approvals:
Legoktm: Looks good to me, approved
jenkins-bot: Verified
diff --git a/README-conversion.txt b/README-conversion.txt
index 99dcf7a..58078da 100644
--- a/README-conversion.txt
+++ b/README-conversion.txt
@@ -115,7 +115,7 @@
The User object has been moved from the userlib module to the pywikibot
namespace. Any references to "userlib.User" can be replaced by
-"pywikibot.User", but the old for mis retained for backwards-compatibility.
+"pywikibot.User", but the old form is retained for backwards-compatibility.
The following changes have occured in the User object:
diff --git a/generate_user_files.py b/generate_user_files.py
index ddd2e6a..b8a0064 100644
--- a/generate_user_files.py
+++ b/generate_user_files.py
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
""" Script to create user files (user-config.py, user-fixes.py) """
#
-# (C) Pywikipedia team, 2010-2012
+# (C) Pywikipedia team, 2010-2013
#
__version__ = '$Id$'
#
diff --git a/pwb.py b/pwb.py
index 9e7a7d9..ae732ed 100644
--- a/pwb.py
+++ b/pwb.py
@@ -5,7 +5,7 @@
and it will use the package directory to store all user files, will fix up
search paths so the package does not need to be installed, etc.
"""
-# (C) Pywikipedia team, 2012
+# (C) Pywikipedia team, 2013
#
__version__ = '$Id$'
#
--
To view, visit https://gerrit.wikimedia.org/r/79174
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Ia38dc2a38abf5731c9676991946f4c0a2d3198b3
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Sumanah <sumanah(a)wikimedia.org>
Gerrit-Reviewer: Ladsgroup <ladsgroup(a)gmail.com>
Gerrit-Reviewer: Legoktm <legoktm.wikipedia(a)gmail.com>
Gerrit-Reviewer: Merlijn van Deen <valhallasw(a)arctus.nl>
Gerrit-Reviewer: jenkins-bot
jenkins-bot has submitted this change and it was merged.
Change subject: update mw version to 1.22wmf12
......................................................................
update mw version to 1.22wmf12
Change-Id: I9ceb5fa7c781171e7dc84eff871452d885035007
---
M family.py
1 file changed, 1 insertion(+), 1 deletion(-)
Approvals:
Xqt: Looks good to me, approved
jenkins-bot: Verified
diff --git a/family.py b/family.py
index 4c15a05..871519d 100644
--- a/family.py
+++ b/family.py
@@ -4722,7 +4722,7 @@
"""Return Wikimedia projects version number as a string."""
# Don't use this, use versionnumber() instead. This only exists
# to not break family files.
- return '1.22wmf10'
+ return '1.22wmf12'
def shared_image_repository(self, code):
return ('commons', 'commons')
--
To view, visit https://gerrit.wikimedia.org/r/78904
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I9ceb5fa7c781171e7dc84eff871452d885035007
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/compat
Gerrit-Branch: master
Gerrit-Owner: Xqt <info(a)gno.de>
Gerrit-Reviewer: Ladsgroup <ladsgroup(a)gmail.com>
Gerrit-Reviewer: Legoktm <legoktm.wikipedia(a)gmail.com>
Gerrit-Reviewer: Xqt <info(a)gno.de>
Gerrit-Reviewer: jenkins-bot
jenkins-bot has submitted this change and it was merged.
Change subject: pep8 changes
......................................................................
pep8 changes
Change-Id: I4cf67a6b69a0a34b5dd2ebf9ef21904b6c3af563
---
M template.py
1 file changed, 16 insertions(+), 12 deletions(-)
Approvals:
Legoktm: Looks good to me, approved
jenkins-bot: Verified
diff --git a/template.py b/template.py
index 2fdb4ef..677890f 100644
--- a/template.py
+++ b/template.py
@@ -105,12 +105,16 @@
#
__version__='$Id$'
#
-import re, sys, string
+import re
+import sys
+import string
import wikipedia as pywikibot
from pywikibot import i18n
-import config, catlib
+import config
+import catlib
import pagegenerators as pg
import replace
+
def UserEditFilterGenerator(generator, username, timestamp=None, skip=False):
"""
@@ -153,15 +157,14 @@
* templateNames - A list of Page object representing the searched
templates
* xmlfilename - The dump's path, either absolute or relative
+
"""
self.templates = templates
self.xmlfilename = xmlfilename
def __iter__(self):
- """
- Yield page objects until the entire XML dump has been read.
- """
+ """Yield page objects until the entire XML dump has been read."""
import xmlreader
mysite = pywikibot.getSite()
dump = xmlreader.XmlDump(self.xmlfilename)
@@ -189,9 +192,10 @@
This robot will load all pages yielded by a page generator and replace or
remove all occurences of the old template, or substitute them with the
template's text.
+
"""
- def __init__(self, generator, templates, subst = False, remove = False,
- editSummary = '', acceptAll = False, addedCat = None):
+ def __init__(self, generator, templates, subst=False, remove=False,
+ editSummary='', acceptAll=False, addedCat=None):
"""
Arguments:
* generator - A page generator.
@@ -201,6 +205,7 @@
removed/resolved to None.
* remove - True if the template should be removed.
* subst - True if the template should be resolved.
+
"""
self.generator = generator
self.templates = templates
@@ -217,7 +222,7 @@
comma = self.summary = site.mediawiki_message('comma-separator')
# get edit summary message if it's empty
- if (self.editSummary==''):
+ if not self.editSummary:
Param = {'list': comma.join(self.templates.keys()),
'num' : len(self.templates)}
if self.remove:
@@ -231,9 +236,7 @@
site, 'template-changing', Param)
def run(self):
- """
- Starts the robot's action.
- """
+ """Starts the robot's action."""
# regular expression to find the original template.
# {{vfd}} does the same thing as {{Vfd}}, so both will be found.
# The old syntax, {{msg:vfd}}, will also be found.
@@ -277,6 +280,7 @@
addedCat=self.addedCat,
editSummary=self.editSummary)
replaceBot.run()
+
def main(*args):
templateNames = []
@@ -355,7 +359,7 @@
for t in oldTemplates]
gen = pg.CombinedPageGenerator(gens)
gen = pg.DuplicateFilterPageGenerator(gen)
-
+
preloadingGen = pg.PreloadingGenerator(gen)
bot = TemplateRobot(preloadingGen, templates, subst, remove, editSummary,
acceptAll, addedCat)
--
To view, visit https://gerrit.wikimedia.org/r/78674
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I4cf67a6b69a0a34b5dd2ebf9ef21904b6c3af563
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/compat
Gerrit-Branch: master
Gerrit-Owner: Xqt <info(a)gno.de>
Gerrit-Reviewer: Ladsgroup <ladsgroup(a)gmail.com>
Gerrit-Reviewer: Legoktm <legoktm.wikipedia(a)gmail.com>
Gerrit-Reviewer: jenkins-bot