From fdd74b5b0c806f3bf2d557fe2a9b4542eeecac3d Mon Sep 17 00:00:00 2001 From: Rumpu-Jussi Date: Tue, 27 Oct 2015 14:44:07 +0200 Subject: [PATCH] More Python 3 -friendly formatting. --- tablib/packages/markup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tablib/packages/markup.py b/tablib/packages/markup.py index 83cb521..c9a4331 100644 --- a/tablib/packages/markup.py +++ b/tablib/packages/markup.py @@ -322,7 +322,7 @@ class page: for name, content in mydict.iteritems( ): self.meta( name=name, content=content ) else: - raise TypeError, "Metainfo should be called with a dictionary argument of name:content pairs." + raise TypeError ("Metainfo should be called with a dictionary argument of name:content pairs.") def scripts( self, mydict ): """Only useful in html, mydict is dictionary of src:type pairs will @@ -332,7 +332,7 @@ class page: for src, type in mydict.iteritems( ): self.script( '', src=src, type='text/%s' % type ) else: - raise TypeError, "Script should be given a dictionary of src:type pairs." + raise TypeError ("Script should be given a dictionary of src:type pairs.") class _oneliner: