Merge pull request #20212 from kpbochenek/fix-doc-generation-python35

=doc #20210 fix generation with python 3.5
This commit is contained in:
Patrik Nordwall 2016-04-05 11:53:12 +02:00
commit ff47c854dc

View file

@ -114,7 +114,7 @@ class IncludeCode(Directive):
"Snippet ({}#{}) not found!".format(filename, section), "Snippet ({}#{}) not found!".format(filename, section),
line=self.lineno 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 tabshift = min(tabcounts) if tabcounts else 0
if tabshift > 0: if tabshift > 0: