Fix bl_rna_utils._TokenizeDataPath function argument extraction error
Converting functions with single arguments to a string added an additional comma.
This commit is contained in:
parent
5678e6c2bc
commit
c59a7f44a1
|
@ -40,8 +40,8 @@ class _TokenizeDataPath:
|
|||
def __call__(self, *args, **kw):
|
||||
value_str = ", ".join([
|
||||
val for val in (
|
||||
repr(args)[1:-1],
|
||||
", ".join(["%s=%r" % (key, value) for key, value in kw.items()])
|
||||
", ".join(repr(value) for value in args),
|
||||
", ".join(["%s=%r" % (key, value) for key, value in kw.items()]),
|
||||
) if val])
|
||||
return _TokenizeDataPath(self.data_path + ('(%s)' % value_str, ))
|
||||
|
||||
|
|
Loading…
Reference in New Issue