mirror of
https://github.com/python/cpython.git
synced 2024-11-23 18:04:37 +08:00
Raise ValuError if non-zero flag argument is provided for sendall() method for conformity with send(), recv() and recv_into()
This commit is contained in:
parent
67c7ce4bef
commit
374f835316
@ -264,6 +264,10 @@ class SSLSocket(socket):
|
||||
def sendall(self, data, flags=0):
|
||||
self._checkClosed()
|
||||
if self._sslobj:
|
||||
if flags != 0:
|
||||
raise ValueError(
|
||||
"non-zero flags not allowed in calls to sendall() on %s" %
|
||||
self.__class__)
|
||||
amount = len(data)
|
||||
count = 0
|
||||
while (count < amount):
|
||||
|
Loading…
Reference in New Issue
Block a user