Skip to content

Commit df78c35

Browse files
Replaced check with python3-friendly version
1 parent bcb358e commit df78c35

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bigquery/schema_builder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ def bigquery_type(o, timestamp_parser=default_timestamp_parser):
126126
"""
127127

128128
t = type(o)
129-
if t == int or t == long:
129+
if isinstance(t, six.integertype):
130130
return "integer"
131131
elif (t == six.binary_type and six.PY2) or t == six.text_type:
132132
if timestamp_parser and timestamp_parser(o):

0 commit comments

Comments
 (0)