From 54ab300d2d2ea21f68133f4ac8bb0cf4ca183c36 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Wed, 23 Mar 2011 01:37:33 -0400 Subject: [PATCH] markup changes for 3.x --- tablib/packages/markup.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tablib/packages/markup.py b/tablib/packages/markup.py index 0e1c6a1..1973c00 100644 --- a/tablib/packages/markup.py +++ b/tablib/packages/markup.py @@ -156,17 +156,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( str.lower, self.onetags )) self.twotags = valid_twotags - self.twotags += list(map( string.lower, self.twotags )) + self.twotags += list(map( str.lower, self.twotags )) self.deptags = deprecated_onetags + deprecated_twotags - self.deptags += list(map( string.lower, self.deptags )) + self.deptags += list(map( str.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( str.lower, self.onetags )) self.twotags = valid_twotags + deprecated_twotags - self.twotags += list(map( string.lower, self.twotags )) + self.twotags += list(map( str.lower, self.twotags )) self.mode = mode elif mode == 'xml': if onetags and twotags: