Commit 01a97867 authored by scottcoughlin2014's avatar scottcoughlin2014

This work in python 3 otherwise markup fails

parent ef599877
Pipeline #26759 passed with stages
in 11 minutes and 35 seconds
......@@ -180,17 +180,17 @@ class page:
if mode == 'strict_html' or mode == 'html':
self.onetags = valid_onetags
self.onetags += list( map( string.lower, self.onetags ) )
self.onetags += list( map( lambda x:x.lower(), self.onetags ) )
self.twotags = valid_twotags
self.twotags += list( map( string.lower, self.twotags ) )
self.twotags += list( map( lambda x:x.lower(), self.twotags ) )
self.deptags = deprecated_onetags + deprecated_twotags
self.deptags += list( map( string.lower, self.deptags ) )
self.deptags += list( map( lambda x:x.lower(), self.deptags ) )
self.mode = 'strict_html'
elif mode == 'loose_html':
self.onetags = valid_onetags + deprecated_onetags
self.onetags += list( map( string.lower, self.onetags ) )
self.onetags += list( map( lambda x:x.lower(), self.onetags ) )
self.twotags = valid_twotags + deprecated_twotags
self.twotags += list( map( string.lower, self.twotags ) )
self.twotags += list( map( lambda x:x.lower(), self.twotags ) )
self.mode = mode
elif mode == 'xml':
if onetags and twotags:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment