ignore undefined name (F821) warning for buffer

This commit is contained in:
Johnny Robeson 2016-07-02 02:42:29 -04:00
parent be08d4b129
commit ce8d1c0c28
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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''