cubicweb/__init__.py
branch3.26
changeset 12432 2fcb53ee5178
parent 11955 f85ec84355db
child 12508 a8c1ea390400
--- 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), \