mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fix failure in py3
This commit is contained in:
@@ -38,7 +38,7 @@ def wrap_displaymath(math, label, numbering):
|
||||
labeldef = r'\label{%s}' % label
|
||||
numbering = True
|
||||
|
||||
parts = filter(is_equation, math.split('\n\n'))
|
||||
parts = list(filter(is_equation, math.split('\n\n')))
|
||||
equations = []
|
||||
if len(parts) == 0:
|
||||
return ''
|
||||
|
||||
Reference in New Issue
Block a user