Make `usenetrc` False by default (the old behaviour of having it True by
default could be rather confusing).
diff --git a/Lib/nntplib.py b/Lib/nntplib.py
index 79611b3..70a75b6 100644
--- a/Lib/nntplib.py
+++ b/Lib/nntplib.py
@@ -308,7 +308,7 @@
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 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 @@
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.