mirror of
https://github.com/python/cpython.git
synced 2025-10-03 05:35:59 +00:00
Whitespace normalization.
This commit is contained in:
parent
fa25a7d51f
commit
2344fae6d0
17 changed files with 3022 additions and 3024 deletions
|
@ -89,4 +89,3 @@ class netrc:
|
|||
|
||||
if __name__ == '__main__':
|
||||
print netrc()
|
||||
|
||||
|
|
|
@ -34,7 +34,7 @@ import socket
|
|||
import string
|
||||
|
||||
|
||||
|
||||
|
||||
# Exceptions raised when an error or invalid response is received
|
||||
class NNTPError(Exception):
|
||||
"""Base class for all nntplib exceptions"""
|
||||
|
@ -73,7 +73,7 @@ error_proto = NNTPProtocolError
|
|||
error_data = NNTPDataError
|
||||
|
||||
|
||||
|
||||
|
||||
# Standard port used by NNTP servers
|
||||
NNTP_PORT = 119
|
||||
|
||||
|
@ -86,7 +86,7 @@ LONGRESP = ['100', '215', '220', '221', '222', '224', '230', '231', '282']
|
|||
CRLF = '\r\n'
|
||||
|
||||
|
||||
|
||||
|
||||
# The class itself
|
||||
class NNTP:
|
||||
def __init__(self, host, port=NNTP_PORT, user=None, password=None,
|
||||
|
|
|
@ -523,4 +523,3 @@ def count_calls(callers):
|
|||
|
||||
def f8(x):
|
||||
return string.rjust(fpformat.fix(x, 3), 8)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue