Skip to content

Commit

Permalink
Use six.integer_types instead of ints for param validation
Browse files Browse the repository at this point in the history
On python2, this accounts for the `long` type.
  • Loading branch information
jamesls committed Oct 3, 2014
1 parent 8c9fb13 commit 4bf1208
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion botocore/validate.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ def _validate_blob(self, param, shape, errors, name):
def _validate_boolean(self, param, shape, errors, name):
pass

@type_check(valid_types=(float, int, decimal.Decimal))
@type_check(valid_types=(float, decimal.Decimal) + six.integer_types)
def _validate_double(self, param, shape, errors, name):
range_check(name, param, shape, 'invalid range', errors)

Expand Down

0 comments on commit 4bf1208

Please sign in to comment.