aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--markdown/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/markdown/__init__.py b/markdown/__init__.py
index 31ab29c..2b5231a 100644
--- a/markdown/__init__.py
+++ b/markdown/__init__.py
@@ -432,7 +432,7 @@ class Markdown:
html = self.convert(text)
# Write to file or stdout
- if type(output) == type("string"):
+ if isinstance(output, (str, unicode)):
output_file = codecs.open(output, "w", encoding=encoding)
output_file.write(html)
output_file.close()