From a1f637fa65861e68312312cb4b501473263774c1 Mon Sep 17 00:00:00 2001 From: Kamil Páral Date: Jun 15 2017 15:27:53 +0000 Subject: docs: avoid crash when .pyo files are present --- diff --git a/docs/generate_directive_docs.py b/docs/generate_directive_docs.py index 9329c24..494b381 100644 --- a/docs/generate_directive_docs.py +++ b/docs/generate_directive_docs.py @@ -345,7 +345,7 @@ def process_category(category, categories, options, env, template, outputname): links_list = [] for module in modules: - if 'pyc' in module: + if not module.endswith('.py'): continue result = process_module(module,