Added numeric_types
This commit is contained in:
parent
a246743698
commit
b0d801b7bb
1 changed files with 2 additions and 0 deletions
|
|
@ -22,6 +22,7 @@ if is_py2:
|
||||||
|
|
||||||
str = unicode
|
str = unicode
|
||||||
basestring = basestring
|
basestring = basestring
|
||||||
|
numeric_types = (int, long, float)
|
||||||
|
|
||||||
|
|
||||||
elif is_py3:
|
elif is_py3:
|
||||||
|
|
@ -29,3 +30,4 @@ elif is_py3:
|
||||||
|
|
||||||
str = str
|
str = str
|
||||||
basestring = (str, bytes)
|
basestring = (str, bytes)
|
||||||
|
numeric_types = (int, float)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue