summaryrefslogtreecommitdiff
path: root/pycco/main.py
diff options
context:
space:
mode:
Diffstat (limited to 'pycco/main.py')
-rw-r--r--pycco/main.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pycco/main.py b/pycco/main.py
index a02eee2..27f0721 100644
--- a/pycco/main.py
+++ b/pycco/main.py
@@ -456,6 +456,7 @@ highlight_start = "<div class=\"highlight\"><pre>"
# The end of each Pygments highlight block.
highlight_end = "</pre></div>"
+
def _flatten_sources(sources):
"""
This function will iterate through the list of sources and if a directory
@@ -466,14 +467,13 @@ def _flatten_sources(sources):
for source in sources:
if os.path.isdir(source):
for dirpath, _, filenames in os.walk(source):
- _sources.extend([os.path.join(dirpath,f) for f in filenames])
+ _sources.extend([os.path.join(dirpath, f) for f in filenames])
else:
_sources.append(source)
return _sources
-
def process(sources, preserve_paths=True, outdir=None, language=None, encoding="utf8", index=False):
"""For each source file passed as argument, generate the documentation."""