Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2021-03-31 07:01:44 +0300
committerCampbell Barton <ideasman42@gmail.com>2021-03-31 07:01:44 +0300
commitc59a7f44a17241ac764a612f67dbc64dc5178106 (patch)
tree813465e76d70b36249d9215b2d75bd8414c99c72
parent5678e6c2bcccd7ce80958f5a0bd7c92837a41e74 (diff)
Fix bl_rna_utils._TokenizeDataPath function argument extraction error
Converting functions with single arguments to a string added an additional comma.
-rw-r--r--release/scripts/modules/bl_rna_utils/data_path.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/release/scripts/modules/bl_rna_utils/data_path.py b/release/scripts/modules/bl_rna_utils/data_path.py
index 76306e379f0..330a3b7522d 100644
--- a/release/scripts/modules/bl_rna_utils/data_path.py
+++ b/release/scripts/modules/bl_rna_utils/data_path.py
@@ -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, ))