Commit 31913cac authored by Jason R. Coombs's avatar Jason R. Coombs Committed by GitHub

Merge pull request #656 from stepshal/unidiomatic-typecheck

Use isinstance() instead of type() for a typecheck.
parents 8e80ee74 c07d0df0
......@@ -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