##// END OF EJS Templates
wrapfunction: deprecates calling `wrappedfunction` with bytes...
marmoute -
r51693:94506fc1 default
parent child Browse files
Show More
@@ -626,6 +626,10 b' class wrappedfunction:'
626
626
627 def __init__(self, container, funcname, wrapper):
627 def __init__(self, container, funcname, wrapper):
628 assert callable(wrapper)
628 assert callable(wrapper)
629 if not isinstance(funcname, str):
630 msg = b"pass wrappedfunction target name as `str`, not `bytes`"
631 util.nouideprecwarn(msg, b"6.6", stacklevel=2)
632 funcname = pycompat.sysstr(funcname)
629 self._container = container
633 self._container = container
630 self._funcname = funcname
634 self._funcname = funcname
631 self._wrapper = wrapper
635 self._wrapper = wrapper
General Comments 0
You need to be logged in to leave comments. Login now