From 39bbe36fc78d3eff1effb8e7116c4ab05315dfc5 Mon Sep 17 00:00:00 2001 From: Ton Kersten Date: Sun, 26 Oct 2014 15:46:08 +0100 Subject: [PATCH] Ignore compiled Python for documentation. When running `ansible-doc --list` a lot of errors are generated when `ansible-doc` tries to find documentation strings in `.pyc` files. --- bin/ansible-doc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/ansible-doc b/bin/ansible-doc index d949c8e5376..d5143f33a15 100755 --- a/bin/ansible-doc +++ b/bin/ansible-doc @@ -33,7 +33,7 @@ import traceback MODULEDIR = C.DEFAULT_MODULE_PATH -BLACKLIST_EXTS = ('.swp', '.bak', '~', '.rpm') +BLACKLIST_EXTS = ('.pyc', '.swp', '.bak', '~', '.rpm') _ITALIC = re.compile(r"I\(([^)]+)\)") _BOLD = re.compile(r"B\(([^)]+)\)")