diff options
| author | Peyman Salehi <peymanslh@pm.me> | 2019-10-05 00:38:55 +0330 |
|---|---|---|
| committer | Claude Paroz <claude@2xlibre.net> | 2019-10-19 16:30:57 +0200 |
| commit | b3c7145c4079fe3d0c76c45421c02b96cc74b624 (patch) | |
| tree | 2734a57dc011276b0377624910d9ee0abe82e441 /src/tablib/formats/_html.py | |
| parent | 44f43516a582f500cda3b37dbab9faa247d3f3f1 (diff) | |
| download | tablib-b3c7145c4079fe3d0c76c45421c02b96cc74b624.tar.gz | |
Drop python 2 support
Remove support python 2 from doc, requirements.txt and config
Replace unicode with str
Remove dbfpy folder and rename dbfpy3 to dbfpy
Remove compat file and remove python2 packages from dependency
Diffstat (limited to 'src/tablib/formats/_html.py')
| -rw-r--r-- | src/tablib/formats/_html.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/tablib/formats/_html.py b/src/tablib/formats/_html.py index ac72bd6..952caf2 100644 --- a/src/tablib/formats/_html.py +++ b/src/tablib/formats/_html.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - """ Tablib - HTML export support. """ @@ -9,7 +7,6 @@ from io import BytesIO from MarkupPy import markup import tablib -from tablib.compat import unicode BOOK_ENDINGS = 'h3' @@ -43,7 +40,7 @@ def export_set(dataset): # Allow unicode characters in output wrapper = codecs.getwriter("utf8")(stream) - wrapper.writelines(unicode(page)) + wrapper.writelines(str(page)) return stream.getvalue().decode('utf-8') |
