Xqt has uploaded a new change for review.

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


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

[PEP8]] changes

Some of the E121/E126 looks wrong to me and diverges from IDLE behavior. 
Anyway...

Change-Id: I9fee2b0cad4427ed88495ca1680471a299c52517
---
M wikipedia.py
1 file changed, 16 insertions(+), 16 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/pywikibot/compat 
refs/changes/65/98365/1

diff --git a/wikipedia.py b/wikipedia.py
index a5da2cf..d0d8488 100644
--- a/wikipedia.py
+++ b/wikipedia.py
@@ -821,10 +821,10 @@
             'rvprop': ['content', 'ids', 'flags', 'timestamp', 'user',
                        'comment', 'size'],
             'rvlimit': 1,
-##            'talkid' valid for release > 1.12
-##            'url', 'readable' valid for release > 1.14
+            # 'talkid' valid for release > 1.12
+            # 'url', 'readable' valid for release > 1.14
             'inprop': ['protection', 'subjectid'],
-##            'intoken': 'edit',
+            # 'intoken': 'edit',
         }
         if oldid:
             params['rvstartid'] = oldid
@@ -2654,7 +2654,7 @@
                     reasonR = re.compile(
                         re.escape(self.site().mediawiki_message(
                             'spamprotectionmatch')).replace(
-                                '\$1', '(?P<url>[^<]*)'))
+                            '\$1', '(?P<url>[^<]*)'))
                     url = reasonR.search(data).group('url')
                 except:
                     # Some wikis have modified the spamprotectionmatch
@@ -2666,7 +2666,7 @@
                     # URL. It then searches for a plaintext URL.
                     relevant = data[data.find(
                         '<!-- start content -->') + 22:data.find(
-                            '<!-- end content -->')].strip()
+                        '<!-- end content -->')].strip()
                     # Throw away all the other links etc.
                     relevant = re.sub('<.*?>', '', relevant)
                     relevant = relevant.replace('&#58;', ':')
@@ -2763,11 +2763,13 @@
                 long_page_errorR = re.compile(
                     # Some wikis (e.g. Lithuanian and Slovak Wikipedia) use
                     # {{plural}} in [[MediaWiki:longpageerror]]
-                    re.sub(r'\\{\\{plural\\:.*?\\}\\}', '.*?', re.escape(
-                        html2unicode(self.site().mediawiki_message(
-                            'longpageerror')))).replace(
-                                "\$1", "(?P<length>[\d,.\s]+)", 1).replace(
-                                    "\$2", "(?P<limit>[\d,.\s]+)", 1),
+                    re.sub(
+                        r'\\{\\{plural\\:.*?\\}\\}', '.*?',
+                        re.escape(
+                            html2unicode(self.site().mediawiki_message(
+                                'longpageerror')))).replace(
+                        "\$1", "(?P<length>[\d,.\s]+)", 1).replace(
+                        "\$2", "(?P<limit>[\d,.\s]+)", 1),
                     re.UNICODE)
 
                 match = long_page_errorR.search(data)
@@ -3528,9 +3530,8 @@
         if deleteAndMove:
             sysop = self._getActionUser(action='delete', restriction='',
                                         sysop=True)
-            Page(self.site(),
-                 newtitle).delete(self.site().mediawiki_message(
-                     'delete_and_move_reason'), False, False)
+            Page(self.site(), newtitle).delete(self.site().mediawiki_message(
+                'delete_and_move_reason'), False, False)
 
         # Check blocks
         self.site().checkBlocks(sysop=sysop)
@@ -8586,9 +8587,8 @@
                         # were found, and "start" will remain and be
                         # double-encoded.
                         # Use the last page as the start of the next page.
-                        start = Page(self,
-                                     allLinks[-1]).title(
-                                         withNamespace=False) + '!'
+                        start = Page(self, allLinks[-1]).title(
+                            withNamespace=False) + '!'
                 else:
                     break
             else:

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I9fee2b0cad4427ed88495ca1680471a299c52517
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