mirror of
https://github.com/python/cpython.git
synced 2025-09-27 02:39:58 +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__':
|
if __name__ == '__main__':
|
||||||
print netrc()
|
print netrc()
|
||||||
|
|
||||||
|
|
|
@ -34,7 +34,7 @@ import socket
|
||||||
import string
|
import string
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Exceptions raised when an error or invalid response is received
|
# Exceptions raised when an error or invalid response is received
|
||||||
class NNTPError(Exception):
|
class NNTPError(Exception):
|
||||||
"""Base class for all nntplib exceptions"""
|
"""Base class for all nntplib exceptions"""
|
||||||
|
@ -73,7 +73,7 @@ error_proto = NNTPProtocolError
|
||||||
error_data = NNTPDataError
|
error_data = NNTPDataError
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Standard port used by NNTP servers
|
# Standard port used by NNTP servers
|
||||||
NNTP_PORT = 119
|
NNTP_PORT = 119
|
||||||
|
|
||||||
|
@ -86,7 +86,7 @@ LONGRESP = ['100', '215', '220', '221', '222', '224', '230', '231', '282']
|
||||||
CRLF = '\r\n'
|
CRLF = '\r\n'
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# The class itself
|
# The class itself
|
||||||
class NNTP:
|
class NNTP:
|
||||||
def __init__(self, host, port=NNTP_PORT, user=None, password=None,
|
def __init__(self, host, port=NNTP_PORT, user=None, password=None,
|
||||||
|
|
|
@ -523,4 +523,3 @@ def count_calls(callers):
|
||||||
|
|
||||||
def f8(x):
|
def f8(x):
|
||||||
return string.rjust(fpformat.fix(x, 3), 8)
|
return string.rjust(fpformat.fix(x, 3), 8)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue