Skip to content

Commit a246743

Browse files
committed
Added compat, numeric_types as allowed param type.
1 parent 11acb49 commit a246743

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

twython/helpers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from .compat import basestring
1+
from .compat import basestring, numeric_types
22

33

44
def _transparent_params(_params):
@@ -12,7 +12,7 @@ def _transparent_params(_params):
1212
params[k] = 'true'
1313
else:
1414
params[k] = 'false'
15-
elif isinstance(v, basestring) or isinstance(v, (long,int)):
15+
elif isinstance(v, basestring) or isinstance(v, numeric_types):
1616
params[k] = v
1717
else:
1818
continue

0 commit comments

Comments
 (0)