Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
'''
start = file_obj.tell()
fbytes = file_obj.read(1024)
file_obj.seek(start)
is_str = isinstance(fbytes, str)
for fbyte in fbytes:
if is_str: code = ord(fbyte)
else: code = fbyte
if code > 127: return True
return False
_MESH_LOADERS = dict()
try:
import pyassimp
if hasattr(pyassimp, 'available_formats'):
_assimp_formats = [i.lower() for i in pyassimp.available_formats()]
else:
_assimp_formats = ['dae',
'blend',
'3ds',
'ase',
'obj',
'ifc',
'xgl',
'zgl',
'ply',
'lwo',
'lxo',
'x',
'ac',
'ms3d',
'cob',