jenkins-bot has submitted this change and it was merged.
Change subject: pep8-ified pywikibot/xmlreader.py
......................................................................
pep8-ified pywikibot/xmlreader.py
Change-Id: I7a3c0919c70e3b2e424183fa77baf7bcd747c939
---
M pywikibot/xmlreader.py
1 file changed, 8 insertions(+), 8 deletions(-)
Approvals:
Ladsgroup: Looks good to me, approved
jenkins-bot: Verified
diff --git a/pywikibot/xmlreader.py b/pywikibot/xmlreader.py
index ef3407f..c389266 100644
--- a/pywikibot/xmlreader.py
+++ b/pywikibot/xmlreader.py
@@ -12,13 +12,15 @@
#
# Distributed under the terms of the MIT license.
#
-__version__='$Id$'
+__version__ = '$Id$'
#
import threading
-import codecs, re
+import codecs
+import re
from xml.etree.cElementTree import iterparse
import pywikibot
+
def parseRestrictions(restrictions):
"""
@@ -52,7 +54,7 @@
# TODO: there are more tags we can read.
self.title = title
self.ns = ns
- self.id =id
+ self.id = id
self.text = text
self.username = username.strip()
self.ipedit = ipedit
@@ -152,9 +154,7 @@
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"""
@@ -170,7 +170,7 @@
ns=self.ns,
id=self.pageid,
text=text or u'',
- username=username or u'', #username might be deleted
+ username=username or u'', # username might be deleted
ipedit=bool(ipeditor),
timestamp=timestamp,
editRestriction=self.editRestriction,
@@ -178,4 +178,4 @@
revisionid=revisionid,
comment=comment,
redirect=self.isredirect
- )
+ )
--
To view, visit
https://gerrit.wikimedia.org/r/80777
To unsubscribe, visit
https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I7a3c0919c70e3b2e424183fa77baf7bcd747c939
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Merlijn van Deen <valhallasw(a)arctus.nl>
Gerrit-Reviewer: Ladsgroup <ladsgroup(a)gmail.com>
Gerrit-Reviewer: Legoktm <legoktm.wikipedia(a)gmail.com>
Gerrit-Reviewer: jenkins-bot