summaryrefslogtreecommitdiffstats
path: root/Lib/nntplib.py
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Patch by Charles G. Waldman to add optional user and passwordGuido van Rossum1997-10-201-1/+10
| | | | arguments to NNTP.__init__(), for nntp servers that need them.
* Fixed bugs regarding lines starting with '.' (both receiving and sending).Guido van Rossum1997-08-261-4/+25
| | | | Added a minimal test function.
* Fix xover implementation according to Fred Lundh.Guido van Rossum1997-07-171-8/+8
|
* Change the list() function to match the documentation in the commentGuido van Rossum1997-03-141-1/+1
| | | | (it should return a list of tuples, not a list of lists).
* Changed makefile() args from r/w to rb/wb, for non-unix compatability.Jack Jansen1996-02-141-1/+1
|
* actualized example; added xover, xgtitle, xpath, date methods by Kevan HeydonGuido van Rossum1995-09-221-4/+87
|
* rename debug() to set_debuglevel()Guido van Rossum1995-03-301-1/+2
|
* fix comments for list commandGuido van Rossum1995-01-101-2/+2
|
* Merge alpha100 branch back to main trunkGuido van Rossum1994-08-011-4/+1
|
* * Mass change: get rid of all init() methods, in favor of __init__()Guido van Rossum1993-12-171-4/+3
| | | | | | | constructors. There is no backward compatibility. Not everything has been tested. * aiff.{py,doc}: deleted in favor of aifc.py (which contains its docs as comments)
* * mainloop.py: added facility for calling select(). Also addedGuido van Rossum1992-11-261-10/+10
| | | | | | | | embryonic facility for pseudo-modal dialogs. * stdwinevents.py: added modifier masks for key/mouse events * renamed exceptions in nntplib.py * Changed string.join() to call string.joinfields() to profit of strop.joinfields()
* * change default line numbers for 'list' in pdb.pyGuido van Rossum1992-11-051-0/+368
* changed eval() into getattr() in cmd.py * added dirname(), basename() and (dummy) normath() to macpath.py * renamed nntp.py to nntplib.py * Made string.index() compatible with strop.index() * Make string.atoi('') raise string.atoi_error rather than ValueError * Added dirname() and normpath() to posixpath.