Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b24d3cf

Browse files
committed
Fix indentation (or Sphinx will think these are attributes of ConnectionError).
1 parent d2cc1bb commit b24d3cf

1 file changed

Lines changed: 20 additions & 19 deletions

File tree

Doc/library/exceptions.rst

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -449,34 +449,35 @@ depending on the system error code.
449449

450450
.. exception:: ConnectionError
451451

452-
A base class for connection-related issues. Subclasses are
453-
:exc:`BrokenPipeError`, :exc:`ConnectionAbortedError`,
452+
A base class for connection-related issues.
453+
454+
Subclasses are :exc:`BrokenPipeError`, :exc:`ConnectionAbortedError`,
454455
:exc:`ConnectionRefusedError` and :exc:`ConnectionResetError`.
455456

456-
.. exception:: BrokenPipeError
457+
.. exception:: BrokenPipeError
457458

458-
A subclass of :exc:`ConnectionError`, raised when trying to write on a
459-
pipe while the other end has been closed, or trying to write on a socket
460-
which has been shutdown for writing.
461-
Corresponds to :c:data:`errno` ``EPIPE`` and ``ESHUTDOWN``.
459+
A subclass of :exc:`ConnectionError`, raised when trying to write on a
460+
pipe while the other end has been closed, or trying to write on a socket
461+
which has been shutdown for writing.
462+
Corresponds to :c:data:`errno` ``EPIPE`` and ``ESHUTDOWN``.
462463

463-
.. exception:: ConnectionAbortedError
464+
.. exception:: ConnectionAbortedError
464465

465-
A subclass of :exc:`ConnectionError`, raised when a connection attempt
466-
is aborted by the peer.
467-
Corresponds to :c:data:`errno` ``ECONNABORTED``.
466+
A subclass of :exc:`ConnectionError`, raised when a connection attempt
467+
is aborted by the peer.
468+
Corresponds to :c:data:`errno` ``ECONNABORTED``.
468469

469-
.. exception:: ConnectionRefusedError
470+
.. exception:: ConnectionRefusedError
470471

471-
A subclass of :exc:`ConnectionError`, raised when a connection attempt
472-
is refused by the peer.
473-
Corresponds to :c:data:`errno` ``ECONNREFUSED``.
472+
A subclass of :exc:`ConnectionError`, raised when a connection attempt
473+
is refused by the peer.
474+
Corresponds to :c:data:`errno` ``ECONNREFUSED``.
474475

475-
.. exception:: ConnectionResetError
476+
.. exception:: ConnectionResetError
476477

477-
A subclass of :exc:`ConnectionError`, raised when a connection is
478-
reset by the peer.
479-
Corresponds to :c:data:`errno` ``ECONNRESET``.
478+
A subclass of :exc:`ConnectionError`, raised when a connection is
479+
reset by the peer.
480+
Corresponds to :c:data:`errno` ``ECONNRESET``.
480481

481482
.. exception:: FileExistsError
482483

0 commit comments

Comments
 (0)