From c4a8a6d3c2b13276f09ff85a859e5dddd816e916 Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Thu, 2 Jan 2014 17:42:18 -0500 Subject: [PATCH] Add an "all" category so all modules show up uncategorized there. --- hacking/module_formatter.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hacking/module_formatter.py b/hacking/module_formatter.py index 237486db24..2202ec038c 100755 --- a/hacking/module_formatter.py +++ b/hacking/module_formatter.py @@ -117,7 +117,7 @@ def write_data(text, options, outputname, module): def list_modules(module_dir): ''' returns a hash of categories, each category being a hash of module names to file paths ''' - categories = {} + categories = dict(all=dict()) files = glob.glob("%s/*" % module_dir) for d in files: if os.path.isdir(d): @@ -129,6 +129,7 @@ def list_modules(module_dir): if not category in categories: categories[category] = {} categories[category][module] = f + categories['all'][module] = f return categories #####################################################################################