Show More
@@ -674,9 +674,8 b' def wrapfunction(container, funcname, wr' | |||||
674 | assert callable(wrapper) |
|
674 | assert callable(wrapper) | |
675 |
|
675 | |||
676 | if not isinstance(funcname, str): |
|
676 | if not isinstance(funcname, str): | |
677 |
msg = b" |
|
677 | msg = b"wrapfunction target name should be `str`, not `bytes`" | |
678 | util.nouideprecwarn(msg, b"6.6", stacklevel=2) |
|
678 | raise TypeError(msg) | |
679 | funcname = pycompat.sysstr(funcname) |
|
|||
680 |
|
679 | |||
681 | origfn = getattr(container, funcname) |
|
680 | origfn = getattr(container, funcname) | |
682 | assert callable(origfn) |
|
681 | assert callable(origfn) |
General Comments 0
You need to be logged in to leave comments.
Login now