fix doc generation with python 3.5

This commit is contained in:
kpbochenek 2016-04-03 20:06:54 +02:00
parent 8449647e40
commit 0155458008

View file

@ -114,7 +114,7 @@ class IncludeCode(Directive):
"Snippet ({}#{}) not found!".format(filename, section),
line=self.lineno
)]
tabcounts = map(lambda l: countwhile(lambda c: c == ' ', l), nonempty)
tabcounts = list(map(lambda l: countwhile(lambda c: c == ' ', l), nonempty))
tabshift = min(tabcounts) if tabcounts else 0
if tabshift > 0: