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>2013-03-28 23:33:14 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-03-28 23:33:14 +0400
commit8e3d590b76222c332d40dfeca81d899e1df5c503 (patch)
tree84bc1ca0b6e645d463034594dd76814d9121c9f0 /release/scripts/modules/console
parent8fce915b6e6b008e89696c7ff96355d9a1f2ccf1 (diff)
code cleanup: python/pep8 and double-promotion warnings.
Diffstat (limited to 'release/scripts/modules/console')
-rw-r--r--release/scripts/modules/console/complete_import.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/release/scripts/modules/console/complete_import.py b/release/scripts/modules/console/complete_import.py
index 9277e04af76..f28f61b303d 100644
--- a/release/scripts/modules/console/complete_import.py
+++ b/release/scripts/modules/console/complete_import.py
@@ -111,10 +111,11 @@ def module_list(path):
else:
folder_list = []
#folder_list = glob.glob(os.path.join(path,'*'))
- folder_list = [p for p in folder_list \
- if os.path.exists(os.path.join(path, p, '__init__.py')) \
- or p[-3:] in {'.py', '.so'} \
- or p[-4:] in {'.pyc', '.pyo', '.pyd'}]
+ folder_list = [
+ p for p in folder_list
+ if (os.path.exists(os.path.join(path, p, '__init__.py')) or
+ p[-3:] in {'.py', '.so'} or
+ p[-4:] in {'.pyc', '.pyo', '.pyd'})]
folder_list = [os.path.basename(p).split('.')[0] for p in folder_list]
return folder_list