From b6d3cbcb61f4cc4c42678d5f183351f95c97c8d4 Mon Sep 17 00:00:00 2001 From: Huarong Chen Date: Wed, 17 Apr 2019 14:19:00 +0800 Subject: [PATCH] Fix "bytes aketrans" issues in Python>=3.1 Issue https://github.com/assimp/assimp/issues/2339 --- port/PyAssimp/pyassimp/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/port/PyAssimp/pyassimp/core.py b/port/PyAssimp/pyassimp/core.py index ca6d8629a..44163a434 100644 --- a/port/PyAssimp/pyassimp/core.py +++ b/port/PyAssimp/pyassimp/core.py @@ -93,7 +93,7 @@ def _is_init_type(obj): return False tname = obj.__class__.__name__ 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): """