summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* __unicode__(): When converting to a unicode string, we need toBarry Warsaw2003-03-061-3/+20
| | | | | | preserve spaces in the encoded/unencoded word boundaries. RFC 2047 is ambiguous here, but most people expect the space to be preserved. Really closes SF bug # 640110.
* Simpler way to write reindent(), suggested by Raymond H.Guido van Rossum2003-03-061-1/+1
|
* Removed superfluous \r.Sjoerd Mullender2003-03-060-0/+0
|
* test_rfc2047_multiline(): Test case for SF bug #640110.Barry Warsaw2003-03-061-0/+14
|
* decode_header(): Typo when appending an unencoded chunk to theBarry Warsaw2003-03-061-1/+1
| | | | | | previous unencoded chunk (e.g. when they appear on separate lines). Closes the 2nd bug in SF #640110 (the first one's already been fixed).
* Describe Charset.__repr__().Barry Warsaw2003-03-061-0/+1
|
* Describe the new Header.encode() argument "splitchars".Barry Warsaw2003-03-061-2/+5
|
* Merge of the folding-reimpl-branch. Specific changes,Barry Warsaw2003-03-062-76/+165
| | | | Update tests for email 2.5.
* Merge of the folding-reimpl-branch. Specific changes,Barry Warsaw2003-03-061-100/+154
| | | | | | | | | | | | | | | | | | | | | | | _split(): New implementation of ASCII line splitting which should do a better job and not be subject to the various weird artifacts (bugs) reported. This should also do a better job of higher-level syntactic splits by trying first to split on semis, then commas, then whitespace. Use a Timbot-ly binary search for optimal non-ASCII split points for better packing of header lines. This also lets us remove one recursion call. Don't pass in firstline, but instead pass in the actual line length we're shooting for. Also pass in the list of split characters. encode(): Pass in the list of split characters so applications can have some control over what "higher level syntactic breaks" are. Also, decode_header(): Transform binascii.Errors which can occur when decoding a base64 RFC 2047 header with bogus data, into an email.Errors.HeaderParseError. Closes SF bug #696712.
* Merge of the folding-reimpl-branch. Specific changes,Barry Warsaw2003-03-061-2/+2
| | | | Rename a constant.
* Merge of the folding-reimpl-branch. Specific changes,Barry Warsaw2003-03-061-3/+0
| | | | Remove a senseless comment.
* Merge of the folding-reimpl-branch. Specific changes,Barry Warsaw2003-03-061-2/+13
| | | | | | | | | | _handle_multipart(): Ensure that if the preamble exists but does not end in a newline, a newline is still added. Without this, the boundary separator will end up on the preamble line, breaking the MIME structure. _make_boundary(): Handle differences in the decimal point character based on the locale.
* Merge of the folding-reimpl-branch. Specific changes,Barry Warsaw2003-03-061-2/+4
| | | | | | | | Charset: Alias __repr__ to __str__ for debugging. header_encode(): When calling quopriMIME.header_encode(), set maxlinelen=None so that the lower level function doesn't (also) try to wrap/fold the line.
* Merge of the folding-reimpl-branch. Specific changes,Barry Warsaw2003-03-061-4/+9
| | | | | | | | | | | _max_append(): Change the comparison so that the new string is concatenated if it's less than or equal to the max length. header_encode(): Allow for maxlinelen == None to mean, don't do any line splitting. This is because this module is mostly used by higher level abstractions (Header.py) which already ensures line lengths. We do this in a cheapo way by setting the max_encoding to some insanely <100k wink> large number.
* Add notes about baseline overhead, and about different PythonGuido van Rossum2003-03-061-6/+22
| | | | versions. Add -h/--help option to print doc string.
* Added more documentation.Guido van Rossum2003-03-061-9/+73
|
* Mention timeit.py.Guido van Rossum2003-03-061-0/+3
|
* A flexible utility to time the execution speed of a code snippet.Guido van Rossum2003-03-051-0/+123
| | | | Usable from the command line or from a program.
* Two ancient and obscure bugs found and fixed by Donovan Preston (theseJack Jansen2003-03-051-2/+2
| | | | | | | | | could be responsible for various unexplained problems with Python/OSA interaction over the years): - Enum values were passed as their string counterparts. Most applications don't seem to mind this, but some do (InDesign). - Attributes have never worked (!), as they were incorrectly passed as parameters. Apparently nobody uses them much:-)
* Declare all variables at the start of their scope.Fred Drake2003-03-051-1/+1
|
* Patch #698082 from Thomas Heller: Modulefinder didn't exclude modulesJust van Rossum2003-03-051-4/+4
| | | | in packages correctly.
* Fix for bug #697546: don't auto-register the Python documentationJack Jansen2003-03-051-1/+3
| | | | | | by putting the help book in an array. Somehow the fact that Python.app (and, hence, pythonw) got an automatic help menu messed up Tkinter's handling of the help menu.
* An #endif was missing in Just's patch. Added.Jack Jansen2003-03-051-0/+1
|
* removing one Mac hack and add another:Just van Rossum2003-03-051-26/+16
| | | | | | | - The applet logic has been replaced to bundlebuilder's bootstrap script - Due to Apple being extremely string about argv[0], we need a way to specify the actual executable name for use with sys.executable. See the comment embedded in the code.
* Always initialize Py_FileSystemDefaultEncoding on Unix in Py_Initialize,Martin v. Löwis2003-03-056-22/+67
| | | | | and not as a side effect of setlocale. Expose it as sys.getfilesystemencoding. Adjust test case.
* Actually *do* override the type in AppBuilder.Jack Jansen2003-03-051-1/+1
|
* Moved some application-bundle specific code from the BundleBuilder class toJack Jansen2003-03-051-5/+9
| | | | | | AppBuilder, and set the default type to BNDL (overridden in AppBuilder). This surfaced when trying to build help bundles.
* Back in June in revision 1.98 Steve (accidentally, presumably) wipedMichael W. Hudson2003-03-051-29/+74
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | out a month's worth of checkins to libstdtypes.tex (including my extended slice docs). I think this checkin merges them all back in, but if you make one of these checkins: revision 1.97 date: 2002/06/14 00:27:13; author: nnorwitz Use \code{True} (or False) instead of true/false. Not sure if code is correct, but that is what's in this file. I've seen \constant{True} in other places. ---------------------------- revision 1.95 date: 2002/05/22 20:39:43; author: bwarsaw Jack's documentation for the U mode character on the file() constructor, vetted by Barry. ---------------------------- revision 1.94 date: 2002/05/21 18:19:15; author: rhettinger Patch 543387. Document deprecation of complex %, //,and divmod(). ---------------------------- revision 1.93 date: 2002/05/15 15:45:25; author: rhettinger Added missing index entries for mapping methods. Closes patch #548693. some checking may be in order.
* I thought it was common practice to check things compiled beforeMichael W. Hudson2003-03-051-5/+5
| | | | | | | checking them in? Oh well, this fixes various obvious mistakes and changes a subsubsubsection (which doesn't exist) into a subsubsection (which does). I'm not sure this matches the intent, but it seems to read OK on a quick skim.
* Patch #696645: Remove VMS code with uncertain authorship.Martin v. Löwis2003-03-053-301/+60
|
* These are no longer used.Jack Jansen2003-03-052-54/+0
|
* Point e-mail address at the SIGAndrew M. Kuchling2003-03-042-2/+2
|
* os.listdir(): Fall back to the original byte string if conversion to unicodeJust van Rossum2003-03-041-6/+8
| | | | fails, as discussed in patch #683592.
* Weaken recommendation of Friedl book; fix referenceAndrew M. Kuchling2003-03-041-4/+4
|
* [bug #692016] update description of {m,n} modifier; you can omit the lower boundAndrew M. Kuchling2003-03-041-3/+4
|
* [bug #696771] Remove misleading parenthetical asideAndrew M. Kuchling2003-03-041-2/+0
|
* Patch #696613 by Ben Laurie: use "test -L" to test for symlinks in steadJack Jansen2003-03-041-1/+1
| | | | of the older (and, according to some manpages, deprecated) "test -h".
* Attempting to save the shell raised an error related to savingKurt B. Kaiser2003-03-041-2/+8
| | | | breakpoints, which are not implemented in the shell
* SF 693333Kurt B. Kaiser2003-03-041-0/+3
| | | | | Modify subprocess to print a reasonable message upon receiving a 'quit' or 'exit'
* test_ioctl is an expected skip on Windows.Tim Peters2003-03-041-0/+1
|
* Fix SF #692416, don't crash interpreter for _tkinter.deletefilehandlerNeal Norwitz2003-03-032-1/+17
| | | | in addition to createfilehandler and creaetetimerhandler.
* [Bug #693470] 'licence' as an alias for 'license' doesn't work.Andrew M. Kuchling2003-03-031-1/+10
| | | | This patch makes it work again.
* SF 695861Kurt B. Kaiser2003-03-031-1/+11
| | | | | | | Eliminate extra blank line in shell output. Caused by stdout not being flushed upon completion of subprocess' Executive.runcode() when user code ends by outputting an unterminated line, e.g. print "test",
* plugged leak noted by nnorwitz: the 'et' format returns allocated memoryJust van Rossum2003-03-031-2/+4
|
* [Bug #69389] List register command in __all__, so setup.py --help-commands ↵Andrew M. Kuchling2003-03-031-0/+1
| | | | will now list it
* Improve descriptionAndrew M. Kuchling2003-03-031-1/+1
|
* Patch #683592 revisited, after discussions with MvL:Just van Rossum2003-03-033-19/+15
| | | | | | | | | | | | | | | | | | - Implement the behavior as specified in PEP 277, meaning os.listdir() will only return unicode strings if it is _called_ with a unicode argument. - And then return only unicode, don't attempt to convert to ASCII. - Don't switch on Py_FileSystemDefaultEncoding, but simply use the default encoding if Py_FileSystemDefaultEncoding is NULL. This means os.listdir() can now raise UnicodeDecodeError if the default encoding can't represent the directory entry. (This seems better than silcencing the error and fall back to a byte string.) - Attempted to decribe the above in Doc/lib/libos.tex. - Reworded the Misc/NEWS items to reflect the current situation. This checkin also fixes bug #696261, which was due to os.listdir() not using Py_FileSystemDefaultEncoding, like all file system calls are supposed to.
* py-pdbtrack-grub-for-buffer(): Rectified some logic errors iKen Manheimer2003-03-031-6/+18
| | | | | | | | | introduced when shifting around some code, and added some redundancy to reduce chances of hitting the wrong source code. (This is experimental - it will improve the accuracy, but will reduce the ability of the user to deliberately select the buffer they want the buffer grubbing stuff to find. I think the accuracy improvement will be worth it, but am not sure, so may remove this.)
* Gave the text fields a little more space, so they don't get cut off.Jack Jansen2003-03-031-4/+4
|
* Mod to previous checkin: we must require ascii, not system defautl encoding,Jack Jansen2003-03-032-2/+2
| | | | | because we have no easy way to convert the python encoding string to a CF encoding parameter.