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

Skip to content

Commit 8bbcb58

Browse files
committed
Fix markup in smtpd.rst.
1 parent a3ccb23 commit 8bbcb58

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

Doc/library/smtpd.rst

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -104,12 +104,13 @@ SMTPChannel Objects
104104
.. attribute:: addr
105105

106106
Holds the address of the client, the second value returned by
107-
socket.accept()
107+
:func:`socket.accept <socket.socket.accept>`
108108

109109
.. attribute:: received_lines
110110

111111
Holds a list of the line strings (decoded using UTF-8) received from
112-
the client. The lines have their "\\r\\n" line ending translated to "\\n".
112+
the client. The lines have their ``"\r\n"`` line ending translated to
113+
``"\n"``.
113114

114115
.. attribute:: smtp_state
115116

@@ -134,12 +135,12 @@ SMTPChannel Objects
134135
.. attribute:: received_data
135136

136137
Holds a string containing all of the data sent by the client during the
137-
DATA state, up to but not including the terminating "\r\n.\r\n".
138+
DATA state, up to but not including the terminating ``"\r\n.\r\n"``.
138139

139140
.. attribute:: fqdn
140141

141142
Holds the fully-qualified domain name of the server as returned by
142-
``socket.getfqdn()``.
143+
:func:`socket.getfqdn`.
143144

144145
.. attribute:: peer
145146

@@ -166,5 +167,5 @@ SMTPChannel Objects
166167
:attr:`received_data`, but not the greeting.
167168
DATA Sets the internal state to :attr:`DATA` and stores remaining lines
168169
from the client in :attr:`received_data` until the terminator
169-
"\r\n.\r\n" is received.
170+
``"\r\n.\r\n"`` is received.
170171
======== ===================================================================

0 commit comments

Comments
 (0)