John Vandenberg has uploaded a new change for review.
https://gerrit.wikimedia.org/r/205831
Change subject: Remove __main__ handler
......................................................................
Remove __main__ handler
This is the only module within pywikibot that contains a main
that prints the module docstring, and in this case it is almost
useless now being only 'Date data and manipulation module.' It used
to be:
This file is not runnable, but it only consists of various
lists which are required by some other programs.
Change-Id: I43bcea448cd6b6d1591bd288e5aa6b3205914b4f
---
M pywikibot/date.py
1 file changed, 0 insertions(+), 4 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/pywikibot/core
refs/changes/31/205831/1
diff --git a/pywikibot/date.py b/pywikibot/date.py
index 75fdc9d..262e786 100644
--- a/pywikibot/date.py
+++ b/pywikibot/date.py
@@ -2413,7 +2413,3 @@
are consecutive and non-negative numbers.
"""
return date2.month - date1.month + (date2.year - date1.year) * 12
-
-
-if __name__ == "__main__":
- print(__doc__)
--
To view, visit https://gerrit.wikimedia.org/r/205831
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I43bcea448cd6b6d1591bd288e5aa6b3205914b4f
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: John Vandenberg <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits