jenkins-bot has submitted this change. ( 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/629083 )

Change subject: [date] show a FutureWarning for deprecated MakeParameter 
function
......................................................................

[date] show a FutureWarning for deprecated MakeParameter function

Change-Id: I433fdcc69d52c35f207b51d754b0f5c62f519476
---
M pywikibot/date.py
1 file changed, 3 insertions(+), 3 deletions(-)

Approvals:
  Mpaa: Looks good to me, approved
  jenkins-bot: Verified



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 https://gerrit.wikimedia.org/r/c/pywikibot/core/+/629083
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.wikimedia.org/r/settings

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I433fdcc69d52c35f207b51d754b0f5c62f519476
Gerrit-Change-Number: 629083
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <[email protected]>
Gerrit-Reviewer: Mpaa <[email protected]>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged
_______________________________________________
Pywikibot-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-commits

Reply via email to