diff -r a570191d67b0 -r 2fcb53ee5178 cubicweb/__init__.py --- a/cubicweb/__init__.py Tue Oct 09 16:24:12 2018 +0200 +++ b/cubicweb/__init__.py Mon Oct 29 10:04:31 2018 +0100 @@ -80,7 +80,7 @@ class Binary(BytesIO): """class to hold binary data. Use BytesIO to prevent use of unicode data""" - _allowed_types = (binary_type, bytearray, buffer if PY2 else memoryview) + _allowed_types = (binary_type, bytearray, buffer if PY2 else memoryview) # noqa: F405 def __init__(self, buf=b''): assert isinstance(buf, self._allowed_types), \