Xqt has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/101629


Change subject: [PEP8] changes
......................................................................

[PEP8] changes

Change-Id: Iddfd37775adcae1799b8c6e81b817e31f5b14686
---
M touch.py
1 file changed, 4 insertions(+), 3 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/pywikibot/compat 
refs/changes/29/101629/1

diff --git a/touch.py b/touch.py
index b5a42db..fdb6d2d 100644
--- a/touch.py
+++ b/touch.py
@@ -20,13 +20,14 @@
 #
 # (C) Pywikipedia team
 #
-__version__='$Id$'
+__version__ = '$Id$'
 #
 # Distributed under the terms of the MIT license.
 #
 
 import wikipedia as pywikibot
-import pagegenerators, config
+import pagegenerators
+import config
 import sys
 
 docuReplacements = {'&params;': pagegenerators.parameterHelp}
@@ -43,7 +44,7 @@
                 # get the page, and save it using the unmodified text.
                 # whether or not getting a redirect throws an exception
                 # depends on the variable self.touch_redirects.
-                text = page.get(get_redirect = self.touch_redirects)
+                text = page.get(get_redirect=self.touch_redirects)
                 page.put(text, "Pywikibot touch script")
             except pywikibot.NoPage:
                 pywikibot.output(u"Page %s does not exist."

-- 
To view, visit https://gerrit.wikimedia.org/r/101629
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Iddfd37775adcae1799b8c6e81b817e31f5b14686
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/compat
Gerrit-Branch: master
Gerrit-Owner: Xqt <i...@gno.de>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to