Commit c07d0df0 authored by stepshal's avatar stepshal

Use isinstance() instead of type() for a typecheck.

parent 8e80ee74
......@@ -105,7 +105,7 @@ class upload_docs(upload):
if not isinstance(values, list):
values = [values]
for value in values:
if type(value) is tuple:
if isinstance(value, tuple):
title += '; filename="%s"' % value[0]
value = value[1]
else:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment