Skip to content

Commit

Permalink
fix comparison of query value for py3. Refs: boto#2558
Browse files Browse the repository at this point in the history
  • Loading branch information
kouk committed Aug 26, 2014
1 parent 45bf3d0 commit 31fbd86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion boto/s3/bucket.py
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ def _get_all_query_args(self, params, initial_query_string=''):
value = six.text_type(value)
if not isinstance(value, six.binary_type):
value = value.encode('utf-8')
if value != '':
if value != six.binary_type(''):
pairs.append(u'%s=%s' % (
urllib.parse.quote(key),
urllib.parse.quote(value)
Expand Down

0 comments on commit 31fbd86

Please sign in to comment.