summaryrefslogtreecommitdiffstats
path: root/Lib/nntplib.py
Commit message (Collapse)AuthorAgeFilesLines
* Issue #10287: nntplib now queries the server's CAPABILITIES first before ↵Antoine Pitrou2012-02-141-6/+15
|\ | | | | | | | | | | sending MODE READER, and only sends it if not already in READER mode. Patch by Hynek Schlawack.
| * Issue #10287: nntplib now queries the server's CAPABILITIES first before ↵Antoine Pitrou2012-02-141-6/+15
| | | | | | | | | | | | sending MODE READER, and only sends it if not already in READER mode. Patch by Hynek Schlawack.
* | Issue #10287: nntplib now queries the server's CAPABILITIES again after ↵Antoine Pitrou2012-02-121-1/+4
|\ \ | |/ | | | | | | | | authenticating (since the result may change, according to RFC 4643). Patch by Hynek Schlawack.
| * Issue #10287: nntplib now queries the server's CAPABILITIES again after ↵Antoine Pitrou2012-02-121-1/+4
| | | | | | | | | | | | authenticating (since the result may change, according to RFC 4643). Patch by Hynek Schlawack.
* | Issue #13248: turn 3.2's PendingDeprecationWarning into 3.3's ↵Florent Xicluna2011-12-101-2/+2
| | | | | | | | DeprecationWarning (cgi, importlib, nntplib, smtpd).
* | #11515: Merge with 3.2.Ezio Melotti2011-03-151-2/+2
|\ \ | |/
| * #11515: Merge with 3.1.Ezio Melotti2011-03-151-2/+2
| |\
| | * #11515: fix several typos. Patch by Piotr Kasprzyk.Ezio Melotti2011-03-151-1/+1
| | |
* | | Issue 9795: adds context manager protocol to nntplib.NNTP class so that it ↵Giampaolo Rodolà2011-03-031-0/+14
|/ / | | | | | | can used with the 'with' statement.
* | Make `usenetrc` False by default (the old behaviour of having it True byAntoine Pitrou2010-11-091-3/+3
| | | | | | | | default could be rather confusing).
* | Issue #1926: Add support for NNTP over SSL on port 563, as well asAntoine Pitrou2010-11-091-76/+183
| | | | | | | | STARTTLS. Patch by Andrew Vant.
* | Issue #10282: Add a `nntp_implementation` attribute to NNTP objects.Antoine Pitrou2010-11-051-0/+3
| |
* | Issue #10283: Add a `group_pattern` argument to NNTP.list().Antoine Pitrou2010-11-041-3/+8
| |
* | Issue #10281: nntplib now returns None for absent fields in the OVER/XOVERAntoine Pitrou2010-11-031-3/+4
| | | | | | | | response, instead of raising an exception.
* | Issue #10280: NNTP.nntp_version should reflect the highest versionAntoine Pitrou2010-11-021-1/+3
| | | | | | | | advertised by the server.
* | Fix NNTP when there's a ".netrc" fileAntoine Pitrou2010-09-291-2/+3
| |
* | Issue #9360: Cleanup and improvements to the nntplib module. The APIAntoine Pitrou2010-09-291-290/+656
|/ | | | | now conforms to the philosophy of bytes and unicode separation in Python 3. A test suite has also been added.
* Merged revisions 72640 via svnmerge fromAntoine Pitrou2009-05-141-2/+1
| | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r72640 | antoine.pitrou | 2009-05-14 23:22:08 +0200 (jeu., 14 mai 2009) | 5 lines Issue #1664: Make nntplib IPv6-capable. Patch by Derek Morr. (Unfortunately, nntplib doesn't have a test suite) ........
* Issue #3714: nntplib module broken by str to unicode conversionChristian Heimes2008-11-051-63/+52
| | | | Patch by Victor, Reviewed by Barry
* Fix a bunch of doctests with the -d option of refactor.py.Guido van Rossum2007-02-091-1/+1
| | | | We still have 27 failing tests (down from 39).
* Fix most trivially-findable print statements.Guido van Rossum2007-02-091-10/+10
| | | | | | | | | There's one major and one minor category still unfixed: doctests are the major category (and I hope to be able to augment the refactoring tool to refactor bona fide doctests soon); other code generating print statements in strings is the minor category. (Oh, and I don't know if the compiler package works.)
* SF patch 1631942 by Collin Winter:Guido van Rossum2007-01-101-1/+1
| | | | | | (a) "except E, V" -> "except E as V" (b) V is now limited to a simple name (local variable) (c) V is now deleted at the end of the except block
* - Bug #1015140: disambiguated the term "article id" in nntplib docs andGeorg Brandl2005-07-171-2/+2
| | | | docstrings to either "article number" or "message id".
* Patch #823072: add option to NOT use ~/.netrc in nntplib.NNTP().Martin v. Löwis2004-08-031-2/+2
|
* Patch #605370: Add description[s] for RFC 2980 compliance.Martin v. Löwis2004-07-261-0/+36
|
* Replace backticks with repr() or "%r"Walter Dörwald2004-02-121-5/+5
| | | | From SF patch #852334.
* - Several methods of nntplib.NNTP have grown an optional file argumentGuido van Rossum2003-04-191-14/+14
| | | | | | which specifies a file where to divert the command's output (already supported by the body() method). (SF patch #720468) Thanks to Terry Carroll.
* Get rid of many apply() calls.Guido van Rossum2003-02-271-1/+1
|
* Whitespace normalization.Tim Peters2002-11-241-1/+0
|
* Guard against error if .netrc is missing.Eric S. Raymond2002-11-171-7/+10
|
* Fix typo in commentNeal Norwitz2002-11-141-1/+1
|
* Make nntplib aware of ~/.netrc credentials; now they get used if they areEric S. Raymond2002-11-131-7/+23
| | | | | | | | | | | | present and the caller has not specified a name/password pair. This change makes it less likely that a lazy coder will expose sensitive information in a word-readable script. Also, make the test a bit smarter. If NNTPSERVER is defined in the environment it will go talk to that server rather than look for a possibly nonexistent local one named 'news'. Maybe the osession initializer ought to look at NNTPSERVER rather than requiring a host arg? Must look around and see how universal this convention is first.
* Remove uses of the string and types modules:Walter Dörwald2002-06-031-2/+1
| | | | | | | | | | | | | | | | | | | | | | x in string.whitespace => x.isspace() type(x) in types.StringTypes => isinstance(x, basestring) isinstance(x, types.StringTypes) => isinstance(x, basestring) type(x) is types.StringType => isinstance(x, str) type(x) == types.StringType => isinstance(x, str) string.split(x, ...) => x.split(...) string.join(x, y) => y.join(x) string.zfill(x, ...) => x.zfill(...) string.count(x, ...) => x.count(...) hasattr(types, "UnicodeType") => try: unicode except NameError: type(x) != types.TupleTuple => not isinstance(x, tuple) isinstance(x, types.TupleType) => isinstance(x, tuple) type(x) is types.IntType => isinstance(x, int) Do not mention the string module in the rlcompleter docstring. This partially applies SF patch http://www.python.org/sf/562373 (with basestring instead of string). (It excludes the changes to unittest.py and does not change the os.stat stuff.)
* The Grande 'sendall()' patch, copied from release21-maint. Fixes #516715.Martin v. Löwis2002-02-161-1/+1
| | | | | Replaces calls to socket.send() (which isn't guaranteed to send all data) with the new socket.sendall() method.
* changed misleading argument nameFredrik Lundh2001-10-181-13/+13
|
* SF patch #462628 (Travers Naran) NNTPLib supports saving BODY to a file.Guido van Rossum2001-10-011-19/+37
| | | | | | | | | | I modified nntplib so the body method can accept an optional second parameter pointing to a filehandle or filename (string). This way, really long body articles can be stored to disk instead of kept in memory. The way I made the modification should make it easy to extend this functionality to other extended return methods.
* String method conversion.Eric S. Raymond2001-02-091-10/+9
|
* added several more __all__ listsSkip Montanaro2001-02-061-1/+4
|
* Whitespace normalization.Tim Peters2001-01-161-3/+3
|
* Fix for SF bug #123625: some newsservers need 'authinfo' *before* 'modeThomas Wouters2001-01-161-0/+20
| | | | | readers', others *after*. (Netscape Collabra for the first category, INN-which-forks-nnrpd for the second.)
* Whitespace normalization.Tim Peters2001-01-151-457/+457
|
* Update the code to better reflect recommended style:Fred Drake2000-12-121-6/+6
| | | | | Use != instead of <> since <> is documented as "obsolescent". Use "is" and "is not" when comparing with None or type objects.
* Spelling fixes supplied by Rob W. W. Hooft. All these are fixes in eitherThomas Wouters2000-07-161-18/+18
| | | | | | | | | | comments, docstrings or error messages. I fixed two minor things in test_winreg.py ("didn't" -> "Didn't" and "Didnt" -> "Didn't"). There is a minor style issue involved: Guido seems to have preferred English grammar (behaviour, honour) in a couple places. This patch changes that to American, which is the more prominent style in the source. I prefer English myself, so if English is preferred, I'd be happy to supply a patch myself ;)
* Fredrik Lundh:Guido van Rossum2000-03-281-1/+1
| | | | | This fixes a bunch of socket.connect(host, post) calls. Note that I haven't tested all modules -- I don't have enough servers here...
* Added new exception classes:Barry Warsaw2000-02-101-28/+81
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | NNTPError - derived from Exception, it's the base class for all other exceptions in this module NNTPReplyError - what used to be error_reply NNTPTemporaryError - what used to be error_temp NNTPPermanentError - what used to be error_perm NNTPProtocolError - what used to be error_proto NNTPDataError - what used to be error_data All the old names are retained for backwards compatibility; they point to the class that replaces them. Also, any code in this module that raises an exception, now does so with the exception class. NNTP.__init__(): Added a new optional argument `readermode', which is a flag that defaults to false. When set to true, the "mode reader" command is sent to the NNTP server before user authentication. Reader mode is sometimes necessary if you are connecting to an NNTP server on the local machine and intend to call reader-specific comamnds, such as `group'. If you get unexpected NNTPPermanentErrors, you might need to set readermode. Patch provided by Thomas Wouters (who include the standard disclaimer on is patches@python.org submission), and inspired by Jim Tittsler.
* More trivial comment -> docstring transformations by Ka-Ping Yee,Guido van Rossum2000-02-041-175/+173
| | | | | | | | | | | | | | | | | | who writes: Here is batch 2, as a big collection of CVS context diffs. Along with moving comments into docstrings, i've added a couple of missing docstrings and attempted to make sure more module docstrings begin with a one-line summary. I did not add docstrings to the methods in profile.py for fear of upsetting any careful optimizations there, though i did move class documentation into class docstrings. The convention i'm using is to leave credits/version/copyright type of stuff in # comments, and move the rest of the descriptive stuff about module usage into module docstrings. Hope this is okay.
* Marc-Andre Lemburg notes about statparse():Guido van Rossum1998-12-211-1/+1
| | | | | | | | | | | | | | | | | """ The message ID is returned lowercased and there is no way to access the original ID the server sent. Now at least some news servers are very picky about the case of the ID and return errors when fetching articles with mixed case given a lowercased version of the ID. The solution is simple: remove the string.lower() call. """ (I might add that the lowercasing was probably introduced as a result of sloppy copy-and-paste coding; there's a string.lower in a similar piece of code a bit higher in the source, that makes more sense -- it's lowercasing the group name.)
* Fix the comments describing the return values of the head(), body(),Guido van Rossum1998-06-301-0/+6
| | | | article() commands.
* A few lines were indented using spaces instead of tabs -- fix them.Guido van Rossum1998-03-261-8/+9
|
* Convert all remaining *simple* cases of regex usage to re usage.Guido van Rossum1997-10-221-10/+9
|