replace dict comprehension with dict constructor

this should make it compatible with python2.6

Change-Id: I0f1ba0efb6f3ff47243118a2f8a7cdc7c7e72bfe
Closes-Bug: #1287631
This commit is contained in:
Ionuț Arțăriși 2014-03-04 11:00:29 +01:00
parent e469aef2c7
commit ee0018ef27
1 changed files with 6 additions and 6 deletions

View File

@ -53,12 +53,12 @@ def write_autodoc_index():
module_dirs = glob.glob(os.path.join(CONTRIB_DIR, '*'))
module_names = map(os.path.basename, module_dirs)
return {
'contrib/%s' % module_name: {
'module': module_name,
'path': os.path.join(CONTRIB_DIR, module_name),
}
for module_name in module_names}
return dict(
('contrib/%s' % module_name,
{'module': module_name,
'path': os.path.join(CONTRIB_DIR, module_name)}
)
for module_name in module_names)
def find_autodoc_modules(module_name, sourcedir):
"""Return a list of modules in the SOURCE directory."""