[New-bugs-announce] [issue40462] [easy] undefined name in Lib/test/mock_socket.py
STINNER Victor
report at bugs.python.org
Thu Apr 30 19:50:30 EDT 2020
New submission from STINNER Victor <vstinner at python.org>:
pyflakes found the following issues in sendall():
Lib/test/mock_socket.py:95:21 undefined name 'data'
Lib/test/mock_socket.py:96:28 undefined name 'data'
Lib/test/mock_socket.py:97:20 undefined name 'data'
Code:
def sendall(self, buffer, flags=None):
self.last = data
self.output.append(data)
return len(data)
def send(self, data, flags=None):
self.last = data
self.output.append(data)
return len(data)
I guess that sendall() buffer parameter should be renamed to data.
----------
components: Tests
keywords: newcomer friendly
messages: 367812
nosy: vstinner
priority: normal
severity: normal
status: open
title: [easy] undefined name in Lib/test/mock_socket.py
versions: Python 3.9
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue40462>
_______________________________________
More information about the New-bugs-announce
mailing list