Lines Matching defs:sys

3 import sys
44 Py_DEBUG = hasattr(sys, 'gettotalrefcount')
45 Py_DEBUG_WIN32 = Py_DEBUG and sys.platform == 'win32'
266 exc_format = ' '.join(traceback.format_exception(*sys.exc_info()))
268 sys.stdout.write(prefix + exc_format)
384 sys.stdout.write("\n RAND_status is %d (%s)\n"
424 sys.stdout.write("\n" + pprint.pformat(p) + "\n")
439 sys.stdout.write("\n" + pprint.pformat(p) + "\n")
460 sys.stdout.write("\n" + pprint.pformat(p) + "\n")
945 @unittest.skipUnless(sys.platform == "win32", "Windows specific")
970 @unittest.skipUnless(sys.platform == "win32", "Windows specific")
1668 @unittest.skipIf(sys.platform == "win32", "not-Windows specific")
1677 @unittest.skipUnless(sys.platform == "win32", "Windows specific")
1678 @unittest.skipIf(hasattr(sys, "gettotalrefcount"), "Debug build does not share environment between CRTs")
2197 sys.stdout.write("\nNeeded %d calls to do_handshake() to establish session.\n" % count)
2219 sys.stdout.write("\nVerified certificate for %s:%s is\n%s\n" % (host, port, pem))
2311 sys.stdout.write("Needed %d calls to complete %s().\n"
2416 sys.stdout.write("\nVerified certificate for %s:%s is\n%s\n" % (host, port ,pem))
2424 sys.stdout.write("%s\n" % x)
2489 if e.errno != errno.EPROTOTYPE and sys.platform != "darwin":
2499 sys.stdout.write(" client cert is " + pprint.pformat(cert) + "\n")
2503 sys.stdout.write(" client did not provide a cert\n")
2505 sys.stdout.write(f" cert binary is {len(cert_binary)}b\n")
2508 sys.stdout.write(" server: connection cipher is now " + str(cipher) + "\n")
2553 sys.stdout.write(" server: client closed connection\n")
2559 sys.stdout.write(" server: read STARTTLS from client, sending OK...\n")
2566 sys.stdout.write(" server: read ENDTLS from client, sending OK...\n")
2571 sys.stdout.write(" server: connection is now unencrypted...\n")
2574 sys.stdout.write(" server: read CB tls-unique from client, sending our CB data...\n")
2579 sys.stdout.write(" server: initiating post handshake auth\n")
2604 sys.stdout.write(" server: read %r (%s), sending back %r (%s)...\n"
2688 sys.stdout.write(' server: new connection from '
2695 sys.stdout.write(f' connection timeout {e!r}\n')
2700 sys.stdout.write(
2756 sys.stdout.write(" server: read %s from client\n" % repr(data))
2765 sys.stdout.write(" server: closed connection %s\n" % self.socket)
2779 sys.stdout.write(" server: new connection from %s:%s\n" %addr)
2803 sys.stdout.write(" cleanup: stopping server.\n")
2806 sys.stdout.write(" cleanup: joining server thread.\n")
2809 sys.stdout.write(" cleanup: successfully joined.\n")
2849 sys.stdout.write(
2855 sys.stdout.write(" client: read %r\n" % outdata)
2864 sys.stdout.write(" client: closing connection.\n")
2897 sys.stdout.write(formatstr %
2962 sys.stdout.write("\n")
3005 sys.stdout.write("\n")
3023 sys.stdout.write(pprint.pformat(cert) + '\n')
3024 sys.stdout.write("Connection cipher is " + str(cipher) + '.\n')
3041 sys.stdout.write("\n")
3081 sys.stdout.write("\n")
3185 sys.stdout.write("\n")
3267 sys.stdout.write("\nSSLError is %r\n" % e)
3272 sys.stdout.write("\nsocket.error is %r\n" % e)
3346 sys.stdout.write("\n")
3371 sys.stdout.write("\n")
3388 sys.stdout.write("\n")
3395 sys.stdout.write(
3431 sys.stdout.write("\n")
3445 sys.stdout.write("\n")
3461 sys.stdout.write("\n")
3479 sys.stdout.write("\n")
3512 sys.stdout.write("\n")
3515 sys.stdout.write(
3527 sys.stdout.write(
3535 sys.stdout.write(
3542 sys.stdout.write(
3545 sys.stdout.write(" client: closing connection.\n")
3560 sys.stdout.write('\n')
3574 sys.stdout.write(
3584 sys.stdout.write("\n")
3592 sys.stdout.write(
3597 sys.stdout.write(" client: read %r\n" % outdata)
3605 sys.stdout.write(" client: closing connection.\n")
3608 sys.stdout.write(" client: connection closed.\n")
3613 sys.stdout.write("\n")
4037 sys.stdout.write("\n")
4053 sys.stdout.write(
4076 sys.stdout.write(
4098 sys.stdout.write(" got compression: {!r}\n".format(stats['compression']))
4531 sys.stdout.write(f"TLS: {info!r}\n")
4561 sys.stdout.write("\n")
4585 sys.stdout.write("\n")
4818 @unittest.skipIf(sys.flags.ignore_environment,
4961 if sys.platform == "linux":
4974 self.skipTest(f"Could not recreate conditions on {sys.platform}:"
5073 sys.stdout.write("server_responding event never set.")