Patchwork [8,of,8] util: enable deprecation warning for stringutil proxy (API)

login
register
mail settings
Submitter Yuya Nishihara
Date March 22, 2018, 3:01 p.m.
Message ID <d53ab441e3ce649d5151.1521730919@mimosa>
Download mbox | patch
Permalink /patch/29786/
State Accepted
Headers show

Comments

Yuya Nishihara - March 22, 2018, 3:01 p.m.
# HG changeset patch
# User Yuya Nishihara <yuya@tcha.org>
# Date 1521725983 -32400
#      Thu Mar 22 22:39:43 2018 +0900
# Node ID d53ab441e3ce649d5151340ec06be72ee8daf3c4
# Parent  7b0c9a92447bf080befe051566fcc8228d957cc0
util: enable deprecation warning for stringutil proxy (API)

.. api::

   Several generic string helper functions have been moved to utils.stringutil
   module.

Patch

diff --git a/mercurial/util.py b/mercurial/util.py
--- a/mercurial/util.py
+++ b/mercurial/util.py
@@ -4079,8 +4079,6 @@  strdate = _deprecatedfunc(dateutil.strda
 parsedate = _deprecatedfunc(dateutil.parsedate, '4.6')
 matchdate = _deprecatedfunc(dateutil.matchdate, '4.6')
 
-def _deprecatedfunc(func, version):  # TODO
-    return func
 escapedata = _deprecatedfunc(stringutil.escapedata, '4.6')
 binary = _deprecatedfunc(stringutil.binary, '4.6')
 stringmatcher = _deprecatedfunc(stringutil.stringmatcher, '4.6')