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

Change subject: now passes test "W391 blank line at end of file"
......................................................................


now passes test "W391 blank line at end of file"

The python style recommends to not have any blank line at the end of a
file.  Spotted using:

 pep8 -select=W391

Change-Id: Idd2cdbb44c5829b28a0b53f7a35521d6ec1ce91f
---
M pywikibot/config2.py
M pywikibot/data/api.py
M pywikibot/editor.py
M pywikibot/families/commons_family.py
M pywikibot/families/wikimedia_family.py
M pywikibot/interwiki_graph.py
M pywikibot/plural.py
M pywikibot/site.py
M pywikibot/throttle.py
M pywikibot/userinterfaces/transliteration.py
M scripts/editarticle.py
M scripts/noreferences.py
M scripts/replicate_wiki.py
M tests/ui_tests.py
14 files changed, 0 insertions(+), 15 deletions(-)

Approvals:
  DrTrigon: Checked; Looks good to me, but someone else must approve
  Xqt: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/pywikibot/config2.py b/pywikibot/config2.py
index 6da0a29..d6ad0bd 100644
--- a/pywikibot/config2.py
+++ b/pywikibot/config2.py
@@ -727,4 +727,3 @@
 
 del __var, __sys
 del os, re
-
diff --git a/pywikibot/data/api.py b/pywikibot/data/api.py
index c6cb4e5..4849f7a 100644
--- a/pywikibot/data/api.py
+++ b/pywikibot/data/api.py
@@ -1006,4 +1006,3 @@
         _test()
     finally:
         pywikibot.stopme()
-
diff --git a/pywikibot/editor.py b/pywikibot/editor.py
index cbf46d0..5fa57dc 100644
--- a/pywikibot/editor.py
+++ b/pywikibot/editor.py
@@ -108,4 +108,3 @@
             return self.restoreLinebreaks(
                         pywikibot.editText(text, jumpIndex=jumpIndex,
                                            highlight=highlight))
-
diff --git a/pywikibot/families/commons_family.py 
b/pywikibot/families/commons_family.py
index cdf4d96..e1ad8fa 100644
--- a/pywikibot/families/commons_family.py
+++ b/pywikibot/families/commons_family.py
@@ -38,4 +38,3 @@
 
     def ssl_pathprefix(self, code):
         return "/wikipedia/commons"
-
diff --git a/pywikibot/families/wikimedia_family.py 
b/pywikibot/families/wikimedia_family.py
index 3e2e33c..35d7378 100644
--- a/pywikibot/families/wikimedia_family.py
+++ b/pywikibot/families/wikimedia_family.py
@@ -25,4 +25,3 @@
 
         self.langs = dict([(country, '%s.wikimedia.org' % country)
                            for country in self.countries])
-
diff --git a/pywikibot/interwiki_graph.py b/pywikibot/interwiki_graph.py
index 208ce9b..21b39f7 100644
--- a/pywikibot/interwiki_graph.py
+++ b/pywikibot/interwiki_graph.py
@@ -147,4 +147,3 @@
     if extension:
         filename += '.%s' % extension
     return filename
-
diff --git a/pywikibot/plural.py b/pywikibot/plural.py
index 8835651..68768cb 100644
--- a/pywikibot/plural.py
+++ b/pywikibot/plural.py
@@ -152,4 +152,3 @@
     'zh-hant': {'nplurals': 1, 'plural': 0},
     'zh-tw': {'nplurals': 1, 'plural': 0},
 }
-
diff --git a/pywikibot/site.py b/pywikibot/site.py
index b4357d6..beae861 100644
--- a/pywikibot/site.py
+++ b/pywikibot/site.py
@@ -3600,5 +3600,3 @@
                 f = open(fn)
                 self._cookies[index] = '; '.join([x.strip() for x in 
f.readlines()])
                 f.close()
-
-    
diff --git a/pywikibot/throttle.py b/pywikibot/throttle.py
index 1b803ec..0a20d0d 100644
--- a/pywikibot/throttle.py
+++ b/pywikibot/throttle.py
@@ -303,4 +303,3 @@
                 time.sleep(wait)
         finally:
             self.lock.release()
-
diff --git a/pywikibot/userinterfaces/transliteration.py 
b/pywikibot/userinterfaces/transliteration.py
index 10a0278..723452c 100644
--- a/pywikibot/userinterfaces/transliteration.py
+++ b/pywikibot/userinterfaces/transliteration.py
@@ -1683,4 +1683,3 @@
             else:
                 return "h"
         return default
-
diff --git a/scripts/editarticle.py b/scripts/editarticle.py
index b7e28bd..069ddd2 100755
--- a/scripts/editarticle.py
+++ b/scripts/editarticle.py
@@ -108,4 +108,3 @@
         main()
     finally:
         pywikibot.stopme()
-
diff --git a/scripts/noreferences.py b/scripts/noreferences.py
index 492365b..51e5906 100755
--- a/scripts/noreferences.py
+++ b/scripts/noreferences.py
@@ -694,4 +694,3 @@
         main()
     finally:
         pywikibot.stopme()
-
diff --git a/scripts/replicate_wiki.py b/scripts/replicate_wiki.py
index f138cc6..3e50836 100644
--- a/scripts/replicate_wiki.py
+++ b/scripts/replicate_wiki.py
@@ -230,4 +230,3 @@
     sync.check_sysops()
     sync.check_namespaces()
     sync.generate_overviews()
-    
diff --git a/tests/ui_tests.py b/tests/ui_tests.py
index dba6bc1..38a1d0f 100644
--- a/tests/ui_tests.py
+++ b/tests/ui_tests.py
@@ -424,4 +424,3 @@
         @unittest.skip("Terminal UI tests can only be run by directly running 
tests/ui_tests.py")
         def testCannotBeRun(self):
             pass
-

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

Gerrit-MessageType: merged
Gerrit-Change-Id: Idd2cdbb44c5829b28a0b53f7a35521d6ec1ce91f
Gerrit-PatchSet: 2
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Hashar <[email protected]>
Gerrit-Reviewer: DrTrigon <[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