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:
Campbell Barton 2021-03-31 15:01:44 +11:00
parent 5678e6c2bc
commit c59a7f44a1
1 changed files with 2 additions and 2 deletions

View File

@ -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, ))