From 4e2c2a9a2e377e718dc3ef0998b15ba339eb9be5 Mon Sep 17 00:00:00 2001 From: Johnny Robeson Date: Fri, 17 Jun 2016 04:03:00 -0400 Subject: [PATCH] add noqa to py3 type checks This prevents `F821 undefined name` warnings --- beets/util/confit.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/beets/util/confit.py b/beets/util/confit.py index aa49f6f12..38b9d3428 100644 --- a/beets/util/confit.py +++ b/beets/util/confit.py @@ -47,9 +47,9 @@ REDACTED_TOMBSTONE = 'REDACTED' # Utilities. PY3 = sys.version_info[0] == 3 -STRING = str if PY3 else unicode -BASESTRING = str if PY3 else basestring -NUMERIC_TYPES = (int, float) if PY3 else (int, float, long) +STRING = str if PY3 else unicode # noqa +BASESTRING = str if PY3 else basestring # noqa +NUMERIC_TYPES = (int, float) if PY3 else (int, float, long) # noqa def iter_first(sequence):