code cleanup: python/pep8 and double-promotion warnings.

This commit is contained in:
Campbell Barton
2013-03-28 19:33:14 +00:00
parent 8fce915b6e
commit 8e3d590b76
22 changed files with 59 additions and 53 deletions

View File

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