Fix "bytes aketrans" issues in Python>=3.1
Issue https://github.com/assimp/assimp/issues/2339pull/2426/head
parent
36bce5fa00
commit
b6d3cbcb61
|
@ -93,7 +93,7 @@ def _is_init_type(obj):
|
||||||
return False
|
return False
|
||||||
tname = obj.__class__.__name__
|
tname = obj.__class__.__name__
|
||||||
return not (tname[:2] == 'c_' or tname == 'Structure' \
|
return not (tname[:2] == 'c_' or tname == 'Structure' \
|
||||||
or tname == 'POINTER') and not isinstance(obj,int)
|
or tname == 'POINTER') and not isinstance(obj, (int, str, bytes))
|
||||||
|
|
||||||
def _init(self, target = None, parent = None):
|
def _init(self, target = None, parent = None):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in New Issue