diff options
author | Chris Moyer <cmoyer@newstex.com> | 2013-01-10 12:24:55 -0500 |
---|---|---|
committer | Chris Moyer <cmoyer@newstex.com> | 2013-01-10 12:24:55 -0500 |
commit | 8a42e28c5b422453dabc9091deea489a2a7ac03a (patch) | |
tree | 064a851521b5e9df8de4efa93fe6ece617170062 /boto/dynamodb | |
parent | df8dfc20137b1f82e5489058c30a1d569eaa1adb (diff) | |
download | boto-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.py | 2 |
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 |