another fix. hope it works :)

This commit is contained in:
Miroslav Stampar
2010-01-27 16:01:50 +00:00
parent f8056f4098
commit d0acb1c5a3
2 changed files with 4 additions and 3 deletions

View File

@@ -54,7 +54,7 @@ class MultipartPostHandler(urllib2.BaseHandler):
try:
for(key, value) in data.items():
if type(value) == file:
if type(value) == file or hasattr(value, 'file'):
v_files.append((key, value))
else:
v_vars.append((key, value))