summaryrefslogtreecommitdiff
path: root/Lib/nntplib.py
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2010-11-09 18:58:42 +0000
committerAntoine Pitrou <solipsis@pitrou.net>2010-11-09 18:58:42 +0000
commit859c4ef0a0069a555057f25f02407e89bd2c114b (patch)
tree5c9cbdc5e002f308c2bfaeedd67161ce2b71a627 /Lib/nntplib.py
parent1cb121eceae698b1be0b383de5d42dc9b9accd02 (diff)
downloadcpython-git-859c4ef0a0069a555057f25f02407e89bd2c114b.tar.gz
Make `usenetrc` False by default (the old behaviour of having it True by
default could be rather confusing).
Diffstat (limited to 'Lib/nntplib.py')
-rw-r--r--Lib/nntplib.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/nntplib.py b/Lib/nntplib.py
index 79611b3680..70a75b60d2 100644
--- a/Lib/nntplib.py
+++ b/Lib/nntplib.py
@@ -308,7 +308,7 @@ class _NNTPBase:
readermode=None, timeout=_GLOBAL_DEFAULT_TIMEOUT):
"""Initialize an instance. Arguments:
- file: file-like object (open for read/write in binary mode)
- - host: hostname of the server (used if `usenetrc` is True)
+ - host: hostname of the server
- readermode: if true, send 'mode reader' command after
connecting.
- timeout: timeout (in seconds) used for socket connections
@@ -986,7 +986,7 @@ class _NNTPBase:
class NNTP(_NNTPBase):
def __init__(self, host, port=NNTP_PORT, user=None, password=None,
- readermode=None, usenetrc=True,
+ readermode=None, usenetrc=False,
timeout=_GLOBAL_DEFAULT_TIMEOUT):
"""Initialize an instance. Arguments:
- host: hostname to connect to
@@ -1026,7 +1026,7 @@ if _have_ssl:
def __init__(self, host, port=NNTP_SSL_PORT,
user=None, password=None, ssl_context=None,
- readermode=None, usenetrc=True,
+ readermode=None, usenetrc=False,
timeout=_GLOBAL_DEFAULT_TIMEOUT):
"""This works identically to NNTP.__init__, except for the change
in default port and the `ssl_context` argument for SSL connections.