diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-09-19 11:07:14 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-09-19 11:07:14 +0400 |
commit | aaf328dc78d69e80d7755b4e64fed136e10079d2 (patch) | |
tree | 73336c77f48f596830d4ef93b005a97aedf6acce /release/scripts/modules/rna_info.py | |
parent | ce639f18d6cf87fa92b80b61b9a411c53516f4a0 (diff) |
remove redundant []'s for list comprehension's, py2.4+ supports this.
Diffstat (limited to 'release/scripts/modules/rna_info.py')
-rw-r--r-- | release/scripts/modules/rna_info.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/release/scripts/modules/rna_info.py b/release/scripts/modules/rna_info.py index f78be1cf958..4282889c51a 100644 --- a/release/scripts/modules/rna_info.py +++ b/release/scripts/modules/rna_info.py @@ -220,7 +220,7 @@ class InfoPropertyRNA: # special case for floats if len(self.default) > 0: if self.type == "float": - self.default_str = "(%s)" % ", ".join([float_as_string(f) for f in self.default]) + self.default_str = "(%s)" % ", ".join(float_as_string(f) for f in self.default) if not self.default_str: self.default_str = str(self.default) else: @@ -247,7 +247,7 @@ class InfoPropertyRNA: if self.type in ("float", "int"): type_str += " in [%s, %s]" % (range_str(self.min), range_str(self.max)) elif self.type == "enum": - type_str += " in [%s]" % ', '.join([("'%s'" % s) for s in self.enum_items]) + type_str += " in [%s]" % ", ".join(("'%s'" % s) for s in self.enum_items) if not (as_arg or as_ret): # write default property, ignore function args for this |