mirror of
https://github.com/python/cpython.git
synced 2025-09-27 18:59:43 +00:00
Fix test failure with -bb
This commit is contained in:
parent
45df820591
commit
764b8780db
1 changed files with 2 additions and 2 deletions
|
@ -376,14 +376,14 @@ else:
|
||||||
self.close()
|
self.close()
|
||||||
return
|
return
|
||||||
elif (self.server.starttls_server and
|
elif (self.server.starttls_server and
|
||||||
stripped == 'STARTTLS'):
|
stripped == b'STARTTLS'):
|
||||||
if support.verbose and self.server.connectionchatty:
|
if support.verbose and self.server.connectionchatty:
|
||||||
sys.stdout.write(" server: read STARTTLS from client, sending OK...\n")
|
sys.stdout.write(" server: read STARTTLS from client, sending OK...\n")
|
||||||
self.write(b"OK\n")
|
self.write(b"OK\n")
|
||||||
if not self.wrap_conn():
|
if not self.wrap_conn():
|
||||||
return
|
return
|
||||||
elif (self.server.starttls_server and self.sslconn
|
elif (self.server.starttls_server and self.sslconn
|
||||||
and stripped == 'ENDTLS'):
|
and stripped == b'ENDTLS'):
|
||||||
if support.verbose and self.server.connectionchatty:
|
if support.verbose and self.server.connectionchatty:
|
||||||
sys.stdout.write(" server: read ENDTLS from client, sending OK...\n")
|
sys.stdout.write(" server: read ENDTLS from client, sending OK...\n")
|
||||||
self.write(b"OK\n")
|
self.write(b"OK\n")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue