jenkins-bot submitted this change.
[cleanup] remove date functions deprecated 5 years ago
Change-Id: I762c778e38e30a3828fec9a13fb42a5bae5e2b0e
---
M pywikibot/date.py
1 file changed, 0 insertions(+), 17 deletions(-)
diff --git a/pywikibot/date.py b/pywikibot/date.py
index 3b199fa..d66470a 100644
--- a/pywikibot/date.py
+++ b/pywikibot/date.py
@@ -191,12 +191,6 @@
return v[0]
-@deprecated(since='20151014', future_warning=True)
-def encNoConv(i):
- """Return i."""
- return i
-
-
def encDec0(i):
"""Round to the nearest decade, decade starts with a '0'-ending year."""
return (i // 10) * 10
@@ -1924,17 +1918,6 @@
formatLimits[dayMnthFmts[monthId]] = _format_limit_dom(30)
-@deprecated('calendar.monthrange', since='20150707', future_warning=True)
-def getNumberOfDaysInMonth(month):
- """
- Return the maximum number of days in a given month, 1 being January, etc.
-
- For February always 29 will be given, even it is not a leap year.
- """
- # use year 2000 which is a leap year
- return calendar.monthrange(2000, month)[1]
-
-
def getAutoFormat(lang, title, ignoreFirstLetterCase=True):
"""
Return first matching formatted date value.
To view, visit change 649375. To unsubscribe, or for help writing mail filters, visit settings.