mirror of
https://github.com/beetbox/beets.git
synced 2025-12-14 20:43:41 +01:00
replace NUMERIC_TYPES with integer_types in functemplate
This commit is contained in:
parent
faea61a76e
commit
9f6b07fe1f
1 changed files with 1 additions and 2 deletions
|
|
@ -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())
|
||||
|
|
|
|||
Loading…
Reference in a new issue