From fcd4951af0fc4701a87f94925ea726625205a0ad Mon Sep 17 00:00:00 2001 From: Waylan Limberg Date: Mon, 11 Apr 2016 19:33:58 -0400 Subject: Remove unnessecary if statement. The statement will never evaluate False, so its not needed. Also, Unicode is not valid for PY3, so its better to not include it. Fixes #470. --- markdown/extensions/tables.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/markdown/extensions/tables.py b/markdown/extensions/tables.py index 39c09a4..a19018e 100644 --- a/markdown/extensions/tables.py +++ b/markdown/extensions/tables.py @@ -73,11 +73,7 @@ class TableProcessor(BlockProcessor): for i, a in enumerate(align): c = etree.SubElement(tr, tag) try: - if isinstance(cells[i], str) or isinstance(cells[i], unicode): - c.text = cells[i].strip() - else: - # we've already inserted a code element - c.append(cells[i]) + c.text = cells[i].strip() except IndexError: # pragma: no cover c.text = "" if a: -- cgit v1.2.3