fix doc generation with python 3.5
This commit is contained in:
parent
8449647e40
commit
0155458008
1 changed files with 1 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue