summaryrefslogtreecommitdiff
path: root/boto/mws
diff options
context:
space:
mode:
authorAndy Davidoff <andy+github@disruptek.com>2012-05-21 11:07:15 -0400
committerAndy Davidoff <andy+github@disruptek.com>2012-05-21 11:07:15 -0400
commit52275e5bb0e8cf176baf125dc681d4747c24cd89 (patch)
tree5563b50753e7dd325967018cbec620949a4aad25 /boto/mws
parent4986f61c9ce00ce792683cce9e47ea1579631155 (diff)
downloadboto-52275e5bb0e8cf176baf125dc681d4747c24cd89.tar.gz
fix for #771; python 2.5 syntax
Diffstat (limited to 'boto/mws')
-rw-r--r--boto/mws/connection.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/boto/mws/connection.py b/boto/mws/connection.py
index bfb0d29a..8d8bdf23 100644
--- a/boto/mws/connection.py
+++ b/boto/mws/connection.py
@@ -80,11 +80,12 @@ def http_body(field):
message = "{} requires {} and content_type arguments for " \
"building HTTP body".format(func.action, field)
raise KeyError(message)
- body = kw.pop(field)
- return func(*args, body=body, headers={
+ kw['body'] = kw.pop(field)
+ kw['headers'] = {
'Content-Type': kw.pop('content_type'),
- 'Content-MD5': content_md5(body),
- }, **kw)
+ 'Content-MD5': content_md5(kw['body']),
+ }
+ return func(*args, **kw)
wrapper.__doc__ = "{}\nRequired HTTP Body: " \
"{}".format(func.__doc__, field)
return add_attrs_from(func, to=wrapper)