jenkins-bot submitted this change.
[date] show a FutureWarning for deprecated MakeParameter function
Change-Id: I433fdcc69d52c35f207b51d754b0f5c62f519476
---
M pywikibot/date.py
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/pywikibot/date.py b/pywikibot/date.py
index c01700f..9d0bf50 100644
--- a/pywikibot/date.py
+++ b/pywikibot/date.py
@@ -15,7 +15,7 @@
from pywikibot import Site
from pywikibot.textlib import NON_LATIN_DIGITS
-from pywikibot.tools import first_lower, first_upper, deprecated
+from pywikibot.tools import deprecated, first_lower, first_upper
#
# Different collections of well known formats
@@ -310,7 +310,7 @@
# Each tuple must 3 parts: a list of all possible digits (symbols), encoder
-# (from int to a u-string) and decoder (from u-string to an int)
+# (from int to a str) and decoder (from str to an int)
_digitDecoders = {
# %% is a %
'%': '%',
@@ -485,7 +485,7 @@
return newValue
-@deprecated(since='20151014')
+@deprecated(since='20151014', future_warning=True)
def MakeParameter(decoder, param):
"""DEPRECATED."""
return _make_parameter(decoder, param)
To view, visit change 629083. To unsubscribe, or for help writing mail filters, visit settings.