fixes for python 2.6 and 3

This commit is contained in:
Peter Gorniak 2016-12-07 13:31:15 -08:00
parent 3c128fdb51
commit 0c875fd268

View File

@ -279,7 +279,7 @@ class DynamoHandler(BaseResponse):
else: else:
index = table.schema index = table.schema
reverse_attribute_lookup = {v: k for k, v in self.body['ExpressionAttributeNames'].iteritems()} reverse_attribute_lookup = dict((v, k) for k, v in six.iteritems(self.body['ExpressionAttributeNames']))
if " AND " in key_condition_expression: if " AND " in key_condition_expression:
expressions = key_condition_expression.split(" AND ", 1) expressions = key_condition_expression.split(" AND ", 1)