Show More
@@ -625,9 +625,8 b' class wrappedfunction:' | |||||
625 | def __init__(self, container, funcname, wrapper): |
|
625 | def __init__(self, container, funcname, wrapper): | |
626 | assert callable(wrapper) |
|
626 | assert callable(wrapper) | |
627 | if not isinstance(funcname, str): |
|
627 | if not isinstance(funcname, str): | |
628 |
msg = b" |
|
628 | msg = b"wrappedfunction target name should be `str`, not `bytes`" | |
629 | util.nouideprecwarn(msg, b"6.6", stacklevel=2) |
|
629 | raise TypeError(msg) | |
630 | funcname = pycompat.sysstr(funcname) |
|
|||
631 | self._container = container |
|
630 | self._container = container | |
632 | self._funcname = funcname |
|
631 | self._funcname = funcname | |
633 | self._wrapper = wrapper |
|
632 | self._wrapper = wrapper |
General Comments 0
You need to be logged in to leave comments.
Login now