summaryrefslogtreecommitdiffstats
path: root/Lib/mhlib.py
Commit message (Collapse)AuthorAgeFilesLines
* Change some uses of cStringIO.StringIO to io.StringIO.Guido van Rossum2007-05-181-4/+1
| | | | This is undoubtedly insufficient and in some cases just as broken as before.
* Merged revisions 55007-55179 via svnmerge fromGuido van Rossum2007-05-071-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/p3yk ........ r55077 | guido.van.rossum | 2007-05-02 11:54:37 -0700 (Wed, 02 May 2007) | 2 lines Use the new print syntax, at least. ........ r55142 | fred.drake | 2007-05-04 21:27:30 -0700 (Fri, 04 May 2007) | 1 line remove old cruftiness ........ r55143 | fred.drake | 2007-05-04 21:52:16 -0700 (Fri, 04 May 2007) | 1 line make this work with the new Python ........ r55162 | neal.norwitz | 2007-05-06 22:29:18 -0700 (Sun, 06 May 2007) | 1 line Get asdl code gen working with Python 2.3. Should continue to work with 3.0 ........ r55164 | neal.norwitz | 2007-05-07 00:00:38 -0700 (Mon, 07 May 2007) | 1 line Verify checkins to p3yk (sic) branch go to 3000 list. ........ r55166 | neal.norwitz | 2007-05-07 00:12:35 -0700 (Mon, 07 May 2007) | 1 line Fix this test so it runs again by importing warnings_test properly. ........ r55167 | neal.norwitz | 2007-05-07 01:03:22 -0700 (Mon, 07 May 2007) | 8 lines So long xrange. range() now supports values that are outside -sys.maxint to sys.maxint. floats raise a TypeError. This has been sitting for a long time. It probably has some problems and needs cleanup. Objects/rangeobject.c now uses 4-space indents since it is almost completely new. ........ r55171 | guido.van.rossum | 2007-05-07 10:21:26 -0700 (Mon, 07 May 2007) | 4 lines Fix two tests that were previously depending on significant spaces at the end of a line (and before that on Python 2.x print behavior that has no exact equivalent in 3.0). ........
* - PEP 3106: dict.iterkeys(), .iteritems(), .itervalues() are now gone;Guido van Rossum2007-02-111-1/+1
| | | | | | | | | | and .keys(), .items(), .values() return dict views. The dict views aren't fully functional yet; in particular, they can't be compared to sets yet. but they are useful as "iterator wells". There are still 27 failing unit tests; I expect that many of these have fairly trivial fixes, but there are so many, I could use help.
* Fix most trivially-findable print statements.Guido van Rossum2007-02-091-4/+4
| | | | | | | | | 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-5/+5
| | | | | | (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
* Replace list of constants with tuples of constants.Raymond Hettinger2005-02-061-2/+2
|
* Use cStringIO where available.Raymond Hettinger2004-12-311-1/+4
|
* Replace backticks with repr() or "%r"Walter Dörwald2004-02-121-11/+10
| | | | From SF patch #852334.
* Implement and apply PEP 322, reverse iterationRaymond Hettinger2003-11-061-2/+1
|
* Get rid of many apply() calls.Guido van Rossum2003-02-271-1/+1
|
* Replace .keys() with .iteritems(). Second review and test by Alex.Raymond Hettinger2002-06-041-2/+2
|
* Make test_mhlib run again.Michael W. Hudson2002-06-021-1/+1
| | | | | | | | | There's some wierdness here, but the test ran before and not after, so I'm just hacking the change out. Someone more motivated than me can work out what's really happening. Raymond: *PLEASE* run the test suite before checking things like this in!
* Replaced obsolete stat module constants with equivalent attributesRaymond Hettinger2002-06-011-5/+2
|
* Replace boolean test with is None.Raymond Hettinger2002-06-011-5/+5
|
* SF 563203. Replaced 'has_key()' with 'in'.Raymond Hettinger2002-06-011-2/+2
|
* Convert a pile of obvious "yes/no" functions to return bool.Tim Peters2002-04-041-2/+2
|
* Folder.getlast(): avoid PyChecker warning.Guido van Rossum2001-10-171-1/+1
|
* Clean up a bare except: clause.unknown2001-07-041-1/+1
|
* String method cleanup.Eric S. Raymond2001-02-101-4/+2
|
* Test with an actual mbox caught a trivial error.Eric S. Raymond2001-02-091-1/+1
|
* String method conversion.Eric S. Raymond2001-02-091-20/+20
|
* a few more modules get __all__Skip Montanaro2001-01-241-0/+1
|
* Update the code to better reflect recommended style:Fred Drake2000-12-121-1/+1
| | | | | 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-1/+1
| | | | | | | | | | 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 ;)
* Convert to use class-based exceptions.Fred Drake2000-06-291-2/+3
| | | | Correct exception information in one docstring.
* More trivial comment -> docstring transformations by Ka-Ping Yee,Guido van Rossum2000-02-041-150/+147
| | | | | | | | | | | | | | | | | | 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.
* Patch by Lars Wirzenius:Guido van Rossum1999-02-241-3/+7
| | | | | | | | | | | | | | | | o the initial comment is wrong: creating messages is already implemented o Message.getbodytext: if the mail or it's part contains an empty content-transfer-encoding header, the code used to break; the change below treats an empty encoding value the same as the other types that do not need decoding o SubMessage.getbodytext was missing the decode argument; the change below adds it; I also made it unconditionally return the raw text if decoding was not desired, because my own routines needed that (and it was easier than rewriting my own routines ;-)
* "if match(x) >= 0:" smells of regex matching; should use "if match(x):"Guido van Rossum1998-06-231-1/+1
|
* Mass check-in after untabifying all files that need it.Guido van Rossum1998-03-261-608/+608
|
* Use string.replace instead of regsub.[g]sub.Guido van Rossum1997-12-241-4/+4
|
* Convert all remaining *simple* cases of regex usage to re usage.Guido van Rossum1997-10-221-15/+9
|
* Use sys.exc_info() where needed.Guido van Rossum1997-09-291-1/+1
|
* Added createmessage() -- Lars Wirzenius.Guido van Rossum1997-07-251-0/+26
|
* Reindented with 4 spaces.Guido van Rossum1997-04-161-816/+813
|
* Rewrite parsesequence() to emulate MH without invoking pick.Guido van Rossum1997-04-161-38/+132
| | | | Test it extensively by using pick.
* Optimized the hell out of listmessages().Guido van Rossum1997-04-021-10/+8
| | | | | Changed numericprog regexpr to make it faster to check. Removed now unnecessary checks for os.curdir, os.pardir.
* When removing a messge from all sequences, don't remove from 'cur',Guido van Rossum1996-11-121-0/+3
| | | | which needs to stay unless explicitly set.
* Added option to refilemessages() to keep sequencesGuido van Rossum1996-07-211-4/+27
|
* added setcontext and parsesequence; several small fixesGuido van Rossum1996-05-281-6/+56
|
* fix bogus test for regex matchGuido van Rossum1995-01-261-1/+1
|
* * Lib/mhlib.py: added movemessage(), copymessage(), added copyGuido van Rossum1995-01-021-8/+81
| | | | fallback for refilemessages(), and updated the docs
* mhlib.py: delay opening of sequences file so we don't overwrite it whenGuido van Rossum1994-09-091-2/+11
| | | | | | putsequences is called with a bad argument rfc822.py: better handling of dates with no or bad timezones uu.py: contributed by Lance -- uu{en,de}code
* * Lib/mhlib.py (removefromallsequences): call putsequences withGuido van Rossum1994-07-141-1/+1
| | | | | | | | | | | | | proper argument * Lib/{bdb,cmd,pdb}.py: Mods by Rickard Westman: No longer barfs on lambda:s (outputs "<lambda>" as the function name); "a(rgs)" in pdb now works; help messages added to pdb (lifted from pdb.doc). Also, "h pdb" calls pdb.help(). cmd.do_help() displays topics on a nicer way (I think). Also, topics for which there is a help_ method, but no do_method (like "pdb" above) are displayed in a special way. My own mod: fix break on function to also support methods.
* mhlib.py: new interface to MH folders and messagesGuido van Rossum1994-06-231-0/+735
multifile.py: added readlines() and read() methods mimetools.py: mimetools.py: added functions to encode/decode standard MIME Content-transfer-encoding types (as well as uuencode) rfc822.py: Accept lines ending in CR LF as well