From 5ab4467708d95777abbac8b9e74f99965da2f4aa Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Tue, 28 Oct 2014 08:36:31 -0700 Subject: [PATCH] module formatter skips modules with leading underscore to avoid documenting them. Soon will be patched to recognize them as either deprecated or an alias --- hacking/module_formatter.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hacking/module_formatter.py b/hacking/module_formatter.py index f7d8570e930..53c2616533e 100755 --- a/hacking/module_formatter.py +++ b/hacking/module_formatter.py @@ -128,6 +128,9 @@ def list_modules(module_dir): files2 = glob.glob("%s/*" % d) for f in files2: + if os.path.basename(f).startswith("_"): # skip deprecated/aliases for now + continue + if not f.endswith(".py") or f.endswith('__init__.py'): # windows powershell modules have documentation stubs in python docstring # format (they are not executed) so skip the ps1 format files