replace NUMERIC_TYPES with integer_types in functemplate

This commit is contained in:
Johnny Robeson 2016-06-20 06:10:57 -04:00
parent faea61a76e
commit 9f6b07fe1f

View file

@ -34,7 +34,6 @@ import ast
import dis
import types
from .confit import NUMERIC_TYPES
import six
SYMBOL_DELIM = u'$'
@ -75,7 +74,7 @@ def ex_literal(val):
"""
if val is None:
return ast.Name('None', ast.Load())
elif isinstance(val, NUMERIC_TYPES):
elif isinstance(val, six.integer_types):
return ast.Num(val)
elif isinstance(val, bool):
return ast.Name(bytes(val), ast.Load())