XZise has uploaded a new change for review.

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

Change subject: [IMPROV] Convert comment to docstring
......................................................................

[IMPROV] Convert comment to docstring

The comment above CosmeticChangesToolkit.commonsfiledesc in
pywikibot.cosmetic_changes is converted into a proper docstring.

Change-Id: Ifc5aa5f30eaea8ef5f1937ffab9cdc6eddc26f9f
---
M pywikibot/cosmetic_changes.py
1 file changed, 7 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/pywikibot/core 
refs/changes/83/225883/1

diff --git a/pywikibot/cosmetic_changes.py b/pywikibot/cosmetic_changes.py
index c85548c..f996f9e 100755
--- a/pywikibot/cosmetic_changes.py
+++ b/pywikibot/cosmetic_changes.py
@@ -886,8 +886,14 @@
             text = textlib.replaceExcept(text, str(i), new[i], exceptions)
         return text
 
-    # Retrieved from 
"https://commons.wikimedia.org/wiki/Commons:Tools/pywiki_file_description_cleanup";
     def commonsfiledesc(self, text):
+        """
+        Clean up description according to [1].
+
+        If only works on the Wikimedia Commons and the file namespace.
+
+        [1]: 
https://commons.wikimedia.org/wiki/Commons:Tools/pywiki_file_description_cleanup
+        """
         if self.site.sitename() != u'commons:commons' or self.namespace == 6:
             return
         # section headers to {{int:}} versions

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ifc5aa5f30eaea8ef5f1937ffab9cdc6eddc26f9f
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: XZise <commodorefabia...@gmx.de>

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

Reply via email to