aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWaylan Limberg <waylan.limberg@icloud.com>2016-04-11 19:33:58 -0400
committerWaylan Limberg <waylan.limberg@icloud.com>2016-04-11 19:33:58 -0400
commitfcd4951af0fc4701a87f94925ea726625205a0ad (patch)
tree210067afde355282f8f9f92214e55a344b3fed5b
parent829743a598f1cc226a95b77afe171090a3a3204b (diff)
downloadmarkdown-fcd4951af0fc4701a87f94925ea726625205a0ad.tar.gz
markdown-fcd4951af0fc4701a87f94925ea726625205a0ad.tar.bz2
markdown-fcd4951af0fc4701a87f94925ea726625205a0ad.zip
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.
-rw-r--r--markdown/extensions/tables.py6
1 files changed, 1 insertions, 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: