Skip to content

Commit b8ba151

Browse files
donBarbospicnixz
andauthored
Update Doc/library/http.server.rst
Co-authored-by: Bénédikt Tran <[email protected]>
1 parent 947f581 commit b8ba151

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Doc/library/http.server.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@ handler. Code to create and run the server looks like this::
5555
bind_and_activate=True, *, certfile, keyfile=None, \
5656
password=None, alpn_protocols=None)
5757
58-
This class is a :class:`HTTPServer` subclass with a wrapped socket using the
59-
:mod:`ssl`, if the :mod:`ssl` module is not available the class will not
60-
initialize.
58+
Subclass of :class:`HTTPServer` with a wrapped socket using the :mod:`ssl` module.
59+
If the :mod:`ssl` module is not available, instantiating an :class:`!HTTPSServer`
60+
object fails with an :exc:`ImportError`.
6161

6262
The *certfile* argument is required and is the path to the SSL
6363
certificate chain file. The *keyfile* is the path to its private key. But

0 commit comments

Comments
 (0)