From ce8d1c0c2849bba6dd24bb3d4eaa9eaf547a08d0 Mon Sep 17 00:00:00 2001 From: Johnny Robeson Date: Sat, 2 Jul 2016 02:42:29 -0400 Subject: [PATCH] ignore undefined name (F821) warning for buffer --- beets/library.py | 2 +- beets/util/__init__.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/beets/library.py b/beets/library.py index 1d63da2c7..18764b6f0 100644 --- a/beets/library.py +++ b/beets/library.py @@ -40,7 +40,7 @@ import beets # `memoryview`, depending on the Python version, tells it that we # actually mean non-text data. if six.PY2: - BLOB_TYPE = buffer + BLOB_TYPE = buffer # noqa ignore=F821 else: BLOB_TYPE = memoryview diff --git a/beets/util/__init__.py b/beets/util/__init__.py index 0715459af..fec6d56db 100644 --- a/beets/util/__init__.py +++ b/beets/util/__init__.py @@ -654,7 +654,7 @@ def as_string(value): """ buffer_types = memoryview if six.PY2: - buffer_types = (buffer, memoryview) + buffer_types = (buffer, memoryview) # noqa ignore=F821 if value is None: return u''