[Python-checkins] cpython: Fix whitespace
antoine.pitrou
python-checkins at python.org
Thu Apr 28 19:24:54 CEST 2011
http://hg.python.org/cpython/rev/19ab4d6d313f
changeset: 69674:19ab4d6d313f
user: Antoine Pitrou <solipsis at pitrou.net>
date: Thu Apr 28 19:24:46 2011 +0200
summary:
Fix whitespace
files:
Lib/test/test_ssl.py | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/Lib/test/test_ssl.py b/Lib/test/test_ssl.py
--- a/Lib/test/test_ssl.py
+++ b/Lib/test/test_ssl.py
@@ -609,7 +609,7 @@
pem = ssl.get_server_certificate((host, port))
if not pem:
self.fail("No server certificate on %s:%s!" % (host, port))
-
+
try:
pem = ssl.get_server_certificate((host, port), ca_certs=CERTFILE)
except ssl.SSLError as x:
@@ -617,13 +617,13 @@
if support.verbose:
sys.stdout.write("%s\n" % x)
else:
- self.fail("Got server certificate %s for %s:%s!" % (pem, host, port))
-
+ self.fail("Got server certificate %s for %s:%s!" % (pem, host, port))
+
pem = ssl.get_server_certificate((host, port), ca_certs=cert)
if not pem:
- self.fail("No server certificate on %s:%s!" % (host, port))
+ self.fail("No server certificate on %s:%s!" % (host, port))
if support.verbose:
- sys.stdout.write("\nVerified certificate for %s:%s is\n%s\n" % (host, port ,pem))
+ sys.stdout.write("\nVerified certificate for %s:%s is\n%s\n" % (host, port ,pem))
_test_get_server_certificate('svn.python.org', 443, SVN_PYTHON_ORG_ROOT_CERT)
if support.IPV6_ENABLED:
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list