Try to convert unicode objects to str if they're ascii, rather than asserting they're already str objects.
This commit is contained in:
1 parent
45a4ee5d7e
commit
f03583993e
3 files changed
+24
-5
No files matched your search
@@ -909,7 +909,7 @@ public:
|
||||
name -- optional name of the class method as it will appear
|
||||
from Python side
|
||||
"""
|
||||
assert name is None or isinstance(name, str)
|
||||
name = utils.ascii(name)
|
||||
|
||||
if isinstance(method, CppMethod):
|
||||
if name is None:
|
||||
|
||||
Reference in new issue
Block a user