jenkins-bot has submitted this change and it was merged.
Change subject: [lint] Import fixes ......................................................................
[lint] Import fixes
Change-Id: Ica9cf62d046b0090c786a32ee329422acd46a11e --- M pywikibot/xmlreader.py 1 file changed, 4 insertions(+), 4 deletions(-)
Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
diff --git a/pywikibot/xmlreader.py b/pywikibot/xmlreader.py index 0348bb3..f8db7ac 100644 --- a/pywikibot/xmlreader.py +++ b/pywikibot/xmlreader.py @@ -8,7 +8,7 @@ XmlEntry objects which can be used by other bots. """ # -# (C) Pywikibot team, 2005-2012 +# (C) Pywikibot team, 2005-2013 # # Distributed under the terms of the MIT license. # @@ -16,10 +16,9 @@ #
import threading -import codecs import re from xml.etree.cElementTree import iterparse -import pywikibot +import xml.sax
def parseRestrictions(restrictions): @@ -154,7 +153,8 @@ self.pageid = elem.findtext("{%s}id" % self.uri) self.restrictions = elem.findtext("{%s}restrictions" % self.uri) self.isredirect = elem.findtext("{%s}redirect" % self.uri) is not None - self.editRestriction, self.moveRestriction = parseRestrictions(self.restrictions) + self.editRestriction, self.moveRestriction = parseRestrictions( + self.restrictions)
def _create_revision(self, revision): """Creates a Single revision"""
pywikibot-commits@lists.wikimedia.org