Xqt has uploaded a new change for review.

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

Change subject: [flake8] Solve D403 doctest
......................................................................

[flake8] Solve D403 doctest

Solve D403 doctest: First word of the first line should be properly capitalized.

Change-Id: I669c0cd946be969151d1b2edc5b6d87924b9bcae
---
M pywikibot/login.py
M scripts/imagecopy_self.py
M scripts/interwiki.py
M tests/pagegenerators_tests.py
M tests/site_tests.py
5 files changed, 6 insertions(+), 6 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/pywikibot/core 
refs/changes/47/301347/1

diff --git a/pywikibot/login.py b/pywikibot/login.py
index b987a24..df1152c 100644
--- a/pywikibot/login.py
+++ b/pywikibot/login.py
@@ -386,7 +386,7 @@
     @property
     def consumer_token(self):
         """
-        OAuth consumer key token and secret token.
+        Return OAuth consumer key token and secret token.
 
         @rtype: tuple of two str
         """
@@ -395,7 +395,7 @@
     @property
     def access_token(self):
         """
-        OAuth access key token and secret token.
+        Return OAuth access key token and secret token.
 
         @rtype: tuple of two str
         """
diff --git a/scripts/imagecopy_self.py b/scripts/imagecopy_self.py
index d24afac..362b02a 100644
--- a/scripts/imagecopy_self.py
+++ b/scripts/imagecopy_self.py
@@ -989,7 +989,7 @@
             imagepage.put(imtxt + addTemplate, comment=commentText)
 
     def replaceUsage(self, imagepage, filename):
-        """replace all usage if image is uploaded under a different name."""
+        """Replace all usage if image is uploaded under a different name."""
         if imagepage.title(withNamespace=False) != filename:
             gen = pagegenerators.FileLinksGenerator(imagepage)
             preloadingGen = pagegenerators.PreloadingGenerator(gen)
diff --git a/scripts/interwiki.py b/scripts/interwiki.py
index dafe079..3504c59 100755
--- a/scripts/interwiki.py
+++ b/scripts/interwiki.py
@@ -749,7 +749,7 @@
             pass
 
     def __len__(self):
-        """length of the object."""
+        """Length of the object."""
         return self.size
 
     def add(self, page):
diff --git a/tests/pagegenerators_tests.py b/tests/pagegenerators_tests.py
index 87dd970..ff3ef7e 100755
--- a/tests/pagegenerators_tests.py
+++ b/tests/pagegenerators_tests.py
@@ -581,7 +581,7 @@
         self.assertEqual(gf.namespaces, set([1, 6]))
 
     def test_immutable_namespaces_on_read(self):
-        """test immutable namespaces on read."""
+        """Test immutable namespaces on read."""
         gf = pagegenerators.GeneratorFactory(site=self.get_site())
         gf.handleArg('-ns:1,6')
         self.assertEqual(gf.namespaces, set([1, 6]))
diff --git a/tests/site_tests.py b/tests/site_tests.py
index 89bc75e..a3a2525 100644
--- a/tests/site_tests.py
+++ b/tests/site_tests.py
@@ -2412,7 +2412,7 @@
     cached = True
 
     def testNamespaceAliases(self):
-        """test namespace aliases."""
+        """Test namespace aliases."""
         site = self.get_site()
 
         namespaces = site.namespaces

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I669c0cd946be969151d1b2edc5b6d87924b9bcae
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Xqt <[email protected]>

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

Reply via email to