mirror of
https://github.com/beetbox/beets.git
synced 2025-12-29 20:12:33 +01:00
ignore undefined name (F821) warning for buffer
This commit is contained in:
parent
be08d4b129
commit
ce8d1c0c28
2 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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''
|
||||
|
|
|
|||
Loading…
Reference in a new issue