File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ def validate_ex(expected_schema, # type: Schema
118
118
else :
119
119
return False
120
120
elif schema_type == 'int' :
121
- if (( isinstance (datum , int ) or isinstance ( datum , int ) )
121
+ if (isinstance (datum , six . integer_types )
122
122
and INT_MIN_VALUE <= datum <= INT_MAX_VALUE ):
123
123
return True
124
124
else :
@@ -127,7 +127,7 @@ def validate_ex(expected_schema, # type: Schema
127
127
else :
128
128
return False
129
129
elif schema_type == 'long' :
130
- if ((isinstance (datum , int ) or isinstance ( datum , int ))
130
+ if ((isinstance (datum , six . integer_types ))
131
131
and LONG_MIN_VALUE <= datum <= LONG_MAX_VALUE ):
132
132
return True
133
133
else :
@@ -137,7 +137,7 @@ def validate_ex(expected_schema, # type: Schema
137
137
else :
138
138
return False
139
139
elif schema_type in ['float' , 'double' ]:
140
- if (isinstance (datum , int ) or isinstance ( datum , int )
140
+ if (isinstance (datum , six . integer_types )
141
141
or isinstance (datum , float )):
142
142
return True
143
143
else :
You can’t perform that action at this time.
0 commit comments