summaryrefslogtreecommitdiff
path: root/boto/dynamodb
diff options
context:
space:
mode:
authorChris Moyer <cmoyer@newstex.com>2013-01-10 12:24:55 -0500
committerChris Moyer <cmoyer@newstex.com>2013-01-10 12:24:55 -0500
commit8a42e28c5b422453dabc9091deea489a2a7ac03a (patch)
tree064a851521b5e9df8de4efa93fe6ece617170062 /boto/dynamodb
parentdf8dfc20137b1f82e5489058c30a1d569eaa1adb (diff)
downloadboto-8a42e28c5b422453dabc9091deea489a2a7ac03a.tar.gz
Don't unecessarily check if it's not a string after we've confirmed it
was a unicode string in dynamo type fix
Diffstat (limited to 'boto/dynamodb')
-rw-r--r--boto/dynamodb/types.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/boto/dynamodb/types.py b/boto/dynamodb/types.py
index c47390f5..e3b49588 100644
--- a/boto/dynamodb/types.py
+++ b/boto/dynamodb/types.py
@@ -252,7 +252,7 @@ class Dynamizer(object):
def _encode_s(self, attr):
if isinstance(attr, unicode):
attr = attr.encode('utf-8')
- if not isinstance(attr, str):
+ elif not isinstance(attr, str):
attr = str(attr)
return attr