summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKonstantinos Koukopoulos <koukopoulos@gmail.com>2014-08-26 19:51:46 +0300
committerKonstantinos Koukopoulos <koukopoulos@gmail.com>2014-08-26 19:51:46 +0300
commit258986e20a5143cdaab25ac1a9173f1648f97ac2 (patch)
tree8007ecf09501bafbd46c7b21204ec1d3ad183910
parent31fbd86172befcedb5acaebb5486822a8951a3db (diff)
downloadboto-258986e20a5143cdaab25ac1a9173f1648f97ac2.tar.gz
fix check for empty value
thanks @methane
-rw-r--r--boto/s3/bucket.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/boto/s3/bucket.py b/boto/s3/bucket.py
index ec528ec3..504f24f9 100644
--- a/boto/s3/bucket.py
+++ b/boto/s3/bucket.py
@@ -379,7 +379,7 @@ class Bucket(object):
value = six.text_type(value)
if not isinstance(value, six.binary_type):
value = value.encode('utf-8')
- if value != six.binary_type(''):
+ if value:
pairs.append(u'%s=%s' % (
urllib.parse.quote(key),
urllib.parse.quote(value)