diff options
| author | Rumpu-Jussi <kontza@gmail.com> | 2015-10-27 14:44:07 +0200 |
|---|---|---|
| committer | Rumpu-Jussi <kontza@gmail.com> | 2015-10-27 14:44:07 +0200 |
| commit | fdd74b5b0c806f3bf2d557fe2a9b4542eeecac3d (patch) | |
| tree | 07f1078e78c67dc4cb711417dece30648830c8c6 /tablib | |
| parent | de052f0fac8e5de7f5a64f10e663def16d795f72 (diff) | |
| download | tablib-fdd74b5b0c806f3bf2d557fe2a9b4542eeecac3d.tar.gz | |
More Python 3 -friendly formatting.
Diffstat (limited to 'tablib')
| -rw-r--r-- | tablib/packages/markup.py | 4 |
1 files 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: |
