Skip to content

Commit

Permalink
don't convert file data to unicode even when file={} is not passed to…
Browse files Browse the repository at this point in the history
… web.input
  • Loading branch information
anandology committed Oct 24, 2009
1 parent e608612 commit 3910dda
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion web/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,9 @@ def unicodify(s):
else: return s

def getvalue(x):
if hasattr(x, 'value'):
if hasattr(x, 'file') and hasattr(x, 'value'):
return x.value
elif hasattr(x, 'value'):
return unicodify(x.value)
else:
return unicodify(x)
Expand Down

0 comments on commit 3910dda

Please sign in to comment.