Browse files

Allow passing parameters of type long when an int is expected.

The test, test_parameter_type_long, added in commit cde2a13, now passes.
  • Loading branch information...
1 parent cde2a13 commit 871cde8a4868249564c64f371defe2cd97d635fd @msabramo committed Jun 1, 2011
Showing with 2 additions and 0 deletions.
  1. +2 −0 etsy/
@@ -62,6 +62,8 @@ def always_ok(self, value):
def check_int(self, value):
+ if isinstance(value, long):
+ return True, value
return isinstance(value, int), value

0 comments on commit 871cde8

Please sign in to comment.