jenkins-bot has submitted this change and it was merged.
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(-)
Approvals:
Ricordisamoa: Looks good to me, approved
jenkins-bot: Verified
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: merged
Gerrit-Change-Id: I43bcea448cd6b6d1591bd288e5aa6b3205914b4f
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: John Vandenberg <jayvdb(a)gmail.com>
Gerrit-Reviewer: Ladsgroup <ladsgroup(a)gmail.com>
Gerrit-Reviewer: Merlijn van Deen <valhallasw(a)arctus.nl>
Gerrit-Reviewer: Ricordisamoa <ricordisamoa(a)openmailbox.org>
Gerrit-Reviewer: jenkins-bot <>