jenkins-bot has submitted this change and it was merged.

Change subject: pep8 fixes
......................................................................


pep8 fixes

Change-Id: Icf77e34b6072d89d7dfcabd4b55d8ad5e388e5cd
Original-Change-Id: I9de67bfb3713106c30d26af9c6faf30c0156c4df
---
M scripts/noreferences.py
1 file changed, 21 insertions(+), 10 deletions(-)

Approvals:
  Merlijn van Deen: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/scripts/noreferences.py b/scripts/noreferences.py
index cb857e0..253c095 100755
--- a/scripts/noreferences.py
+++ b/scripts/noreferences.py
@@ -134,7 +134,7 @@
         u'参考文献',
         u'外部リンク',
     ],
-    'ko': [               # no explicit policy on where to put the references
+    'ko': [              # no explicit policy on where to put the references
         u'외부 링크',
         u'외부링크',
         u'바깥 고리',
@@ -324,7 +324,8 @@
 referencesTemplates = {
     'wikipedia': {
         'ar': [u'Reflist', u'ثبت المراجع', u'قائمة المراجع'],
-        'be': [u'Зноскі', u'Примечания', u'Reflist', u'Спіс заўваг', 
u'Заўвагі'],
+        'be': [u'Зноскі', u'Примечания', u'Reflist', u'Спіс заўваг',
+               u'Заўвагі'],
         'be-x-old': [u'Зноскі'],
         'da': [u'Reflist'],
         'dsb': [u'Referency'],
@@ -334,7 +335,8 @@
         'eo': [u'Referencoj'],
         'es': ['Listaref', 'Reflist', 'muchasref'],
         'fa': [u'Reflist', u'Refs', u'FootnotesSmall', u'Reference',
-               u'پانویس', u'پانویس‌ها ', u'پانویس ۲', u'پانویس۲', u'فهرست 
منابع'],
+               u'پانویس', u'پانویس‌ها ', u'پانویس ۲', u'پانویس۲',
+               u'فهرست منابع'],
         'fi': [u'Viitteet', u'Reflist'],
         'fr': [u'Références', u'Notes', u'References', u'Reflist'],
         'hsb': [u'Referency'],
@@ -494,7 +496,11 @@
                         pywikibot.output(
                             u'Adding references tag to existing %s 
section...\n'
                             % section)
-                        newText = oldText[:match.end()] + u'\n' + 
self.referencesText + u'\n' + oldText[match.end():]
+                        newText = (
+                            oldText[:match.end()] + u'\n' +
+                            self.referencesText + u'\n' +
+                            oldText[match.end():]
+                        )
                         return newText
                 else:
                     break
@@ -510,8 +516,8 @@
                 if match:
                     if pywikibot.isDisabled(oldText, match.start()):
                         pywikibot.output(
-                            'Existing  %s section is commented out, won\'t add 
the references in front of it.'
-                            % section)
+                            'Existing  %s section is commented out, won\'t add 
'
+                            'the references in front of it.' % section)
                         index = match.end()
                     else:
                         pywikibot.output(
@@ -519,7 +525,8 @@
                             % section)
                         index = match.start()
                         ident = match.group('ident')
-                        return self.createReferenceSection(oldText, index, 
ident)
+                        return self.createReferenceSection(oldText, index,
+                                                           ident)
                 else:
                     break
         # This gets complicated: we want to place the new references
@@ -554,7 +561,9 @@
             else:
                 break
         pywikibot.output(
-            u'Found no section that can be preceeded by a new references 
section.\nPlacing it before interwiki links, categories, and bottom templates.')
+            u'Found no section that can be preceeded by a new references '
+            u'section.\nPlacing it before interwiki links, categories, and '
+            u'bottom templates.')
         index = len(tmpText)
         return self.createReferenceSection(oldText, index)
 
@@ -623,9 +632,11 @@
                 pywikibot.output(u"Page %s is locked?!"
                                  % page.title(asLink=True))
                 continue
-            if pywikibot.getSite().sitename() == 'wikipedia:en' and 
page.isIpEdit():
+            if pywikibot.getSite().sitename() == 'wikipedia:en' and \
+               page.isIpEdit():
                 pywikibot.output(
-                    u"Page %s is edited by IP. Possible vandalized" % 
page.title(asLink=True))
+                    u"Page %s is edited by IP. Possible vandalized"
+                    % page.title(asLink=True))
                 continue
             if self.lacksReferences(text):
                 newText = self.addReferences(text)

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

Gerrit-MessageType: merged
Gerrit-Change-Id: Icf77e34b6072d89d7dfcabd4b55d8ad5e388e5cd
Gerrit-PatchSet: 2
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Merlijn van Deen <[email protected]>
Gerrit-Reviewer: Merlijn van Deen <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-Reviewer: jenkins-bot

_______________________________________________
Pywikibot-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-commits

Reply via email to