Merge pull request #2381 from Skehmatics/fix/abc_deprication

Correct depricated (and now removed) import
This commit is contained in:
Lubos Lenco 2021-11-08 10:14:09 +01:00 committed by GitHub
commit 9220e6b57e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
import collections
import collections.abc
from typing import Any, Generator, Type, Union
import bpy
@ -149,7 +149,7 @@ def haxe_format_socket_val(socket_val: Any, array_outer_brackets=True) -> str:
elif isinstance(socket_val, str):
socket_val = '"{:s}"'.format(socket_val.replace('"', '\\"'))
elif isinstance(socket_val, (collections.Sequence, bpy.types.bpy_prop_array, mathutils.Color, mathutils.Euler, mathutils.Vector)):
elif isinstance(socket_val, (collections.abc.Sequence, bpy.types.bpy_prop_array, mathutils.Color, mathutils.Euler, mathutils.Vector)):
socket_val = ','.join(haxe_format_socket_val(v, array_outer_brackets=True) for v in socket_val)
if array_outer_brackets:
socket_val = f'[{socket_val}]'