Commit 37d5f8a9 authored by Jason R. Coombs's avatar Jason R. Coombs

Correct regression in upload_docs in syntax adjustment. Fixes #124.

parent 02a2d475
......@@ -2,6 +2,12 @@
CHANGES
=======
-----
2.0.1
-----
* Issue #124: Fixed error in list detection in upload_docs.
---
2.0
---
......
......@@ -127,7 +127,7 @@ class upload_docs(upload):
for key, values in iteritems(data):
title = '\nContent-Disposition: form-data; name="%s"' % key
# handle multiple entries for the same name
if isinstance(values, list):
if not isinstance(values, list):
values = [values]
for value in values:
if type(value) is tuple:
......
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