Fix "bytes aketrans" issues in Python>=3.1

Issue https://github.com/assimp/assimp/issues/2339
pull/2426/head
Huarong Chen 2019-04-17 14:19:00 +08:00 committed by GitHub
parent 36bce5fa00
commit b6d3cbcb61
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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):
""" """