From 9f6b07fe1f582df3c488f503cf8efa650e22328c Mon Sep 17 00:00:00 2001 From: Johnny Robeson Date: Mon, 20 Jun 2016 06:10:57 -0400 Subject: [PATCH] replace NUMERIC_TYPES with integer_types in functemplate --- beets/util/functemplate.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/beets/util/functemplate.py b/beets/util/functemplate.py index ad3d22c92..1dc704020 100644 --- a/beets/util/functemplate.py +++ b/beets/util/functemplate.py @@ -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())