Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions swat/dataframe.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -788,10 +788,7 @@ def to_html(self, apply_formats=None, **kwargs):

def _post_process_html(self, html):
''' Add SAS-isms to generated HTML table '''
try:
from html import escape
except ImportError:
from cgi import escape
from html import escape

# Add table label
if self.label:
Expand Down
4 changes: 2 additions & 2 deletions swat/notebook/zeppelin.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
from __future__ import print_function, division, absolute_import, unicode_literals

import base64
import cgi
import html
import pandas as pd
import pprint
import six
Expand Down Expand Up @@ -77,7 +77,7 @@ def show(obj, **kwargs):
show_svg(obj, **kwargs)

else:
print('%%html <pre>%s</pre>' % cgi.escape(pprint.pformat(obj)))
print('%%html <pre>%s</pre>' % html.escape(pprint.pformat(obj)))


def show_image(img, fmt='png', width='auto', height='auto'):
Expand Down