[FIX] undefined variables (potential nameerror)
Backport9ec0455abcand6a601fe6dcas they fixed various possible NameError but did so in later sub-releases.
This commit is contained in:
+2
-1
@@ -1630,7 +1630,8 @@ class Datetime(Field):
|
||||
# Received data is returned as buffer (in Python 2) or memoryview (in Python 3).
|
||||
_BINARY = memoryview
|
||||
if pycompat.PY2:
|
||||
_BINARY = buffer #pylint: disable=buffer-builtin
|
||||
#pylint: disable=buffer-builtin,undefined-variable
|
||||
_BINARY = buffer
|
||||
|
||||
class Binary(Field):
|
||||
type = 'binary'
|
||||
|
||||
Reference in New Issue
Block a user