This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mcjeff
Recipients mcjeff, pitrou
Date 2012-10-29.21:23:47
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1351545827.59.0.063766379086.issue16357@psf.upfronthosting.co.za>
In-reply-to
Content
Ak! Yes, cut and paste error.

Python 3.4.0a0 (default:57a33af85407, Oct 27 2012, 21:26:30) 
[GCC 4.4.3] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import ssl          
>>> c = ssl.SSLContext(ssl.PROTOCOL_SSLv23)
>>> c.load_cert_chain('Lib/test/keycert.pem')        
>>> import socket
>>> s = socket.socket(socket.AF_INET, socket.SOCK_STREAM, 0)
>>> s.bind(('127.0.0.1', 5050))
>>> s = c.wrap_socket(s)
>>> s.listen(5)
>>> s.accept()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/jeff/cpython/Lib/ssl.py", line 557, in accept
    keyfile=self.keyfile, certfile=self.certfile,
AttributeError: 'SSLSocket' object has no attribute 'keyfile'
>>> 

I'll add a corresponding test, sure thing.
History
Date User Action Args
2012-10-29 21:23:47mcjeffsetrecipients: + mcjeff, pitrou
2012-10-29 21:23:47mcjeffsetmessageid: <1351545827.59.0.063766379086.issue16357@psf.upfronthosting.co.za>
2012-10-29 21:23:47mcjefflinkissue16357 messages
2012-10-29 21:23:47mcjeffcreate