Show More
@@ -626,6 +626,10 b' class wrappedfunction:' | |||
|
626 | 626 | |
|
627 | 627 | def __init__(self, container, funcname, wrapper): |
|
628 | 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 | 633 | self._container = container |
|
630 | 634 | self._funcname = funcname |
|
631 | 635 | self._wrapper = wrapper |
General Comments 0
You need to be logged in to leave comments.
Login now