From 76fcd8741a92f6868773f518a846bd18bda91a7a Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sat, 14 Dec 2013 17:59:20 +0000 Subject: Python 3.3 support --- mammoth/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mammoth/__init__.py') diff --git a/mammoth/__init__.py b/mammoth/__init__.py index 0073664..987226d 100644 --- a/mammoth/__init__.py +++ b/mammoth/__init__.py @@ -1,5 +1,5 @@ from .results import Result -from . import docx, conversion, style_reader +from . import docx, conversion, style_reader, lists def convert_to_html(fileobj): @@ -10,7 +10,7 @@ def convert_to_html(fileobj): def _create_default_styles(): lines = filter(None, map(lambda line: line.strip(), _default_styles.split("\n"))) - return map(style_reader.read_style, lines) + return lists.map(style_reader.read_style, lines) _default_styles = """ p.Heading1 => h1:fresh -- cgit v1.2.3