From cfee468ef8a5f6e24a17db746ef42ba651086123 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20Lerche=20S=C3=B8rensen?= Date: Fri, 17 Mar 2017 20:01:17 +0100 Subject: [PATCH] Fixed type conditional: unicode deprecated by str since Python 3.x --- ipy_table.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ipy_table.py b/ipy_table.py index 8979a1f..a8aab58 100755 --- a/ipy_table.py +++ b/ipy_table.py @@ -360,7 +360,7 @@ def _formatter(self, item, cell_style): and 'float_format' in cell_style): text = cell_style['float_format'] % item else: - if type(item) == unicode: + if type(item) == str: text = item else: text = str(item)