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

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2011-08-08 09:23:00 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-08-08 09:23:00 +0400
commit2135f8806c5154bb55374faf83cdecb48d4de090 (patch)
tree31cd393b5df32f5cef333f1a6d34398cc12bdfcc /rigify/__init__.py
parentd061f22884156296541aa01d6f41e993dbe5412a (diff)
use sets rather then tuples for if checks, python optimizes this case.
Diffstat (limited to 'rigify/__init__.py')
-rw-r--r--rigify/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/rigify/__init__.py b/rigify/__init__.py
index c7b02d6c..4884abac 100644
--- a/rigify/__init__.py
+++ b/rigify/__init__.py
@@ -56,7 +56,7 @@ def get_rig_list(path):
for f in files:
is_dir = os.path.isdir(os.path.join(SEARCH_DIR_ABS, f)) # Whether the file is a directory
- if f[0] in (".", "_"):
+ if f[0] in {".", "_"}:
pass
elif f.count(".") >= 2 or (is_dir and "." in f):
print("Warning: %r, filename contains a '.', skipping" % os.path.join(SEARCH_DIR_ABS, f))