summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* whitespace normalizationBarry Warsaw2003-03-071-6/+6
|
* This test relied on significant trailing whitespace in a string literal.Tim Peters2003-03-071-7/+12
| | | | Evil.
* Add a little more verbiage about the bsddb module/package change. It'sSkip Montanaro2003-03-071-1/+8
| | | | | | clear from recent discussions on c.l.py that people are a bit confused about the differences between the old bsddb, the new bssdb, the bsddb3/PyBSDDB package and changes to file formats. Tried to clarify the issues.
* _write_headers(), _split_header(): All of the smarts for splittingBarry Warsaw2003-03-071-35/+20
| | | | | | long header lines is now (properly) in the Header class. So we no longer need _split_header() and we'll just defer to Header.encode() when we have a plain string.
* More internal refinements of the ascii splitting algorithm.Barry Warsaw2003-03-071-7/+10
| | | | | | | | | | | | | | _encode_chunks(): Pass maxlinelen in instead of always using self._maxlinelen, so we can adjust for shorter initial lines. Pass this value through to _max_append(). encode(): Weave maxlinelen through to the _encode_chunks() call. _split_ascii(): When recursively splitting a line on spaces (i.e. lower level syntactic split), don't append the whole returned string. Instead, split it on linejoiners and extend the lines up to the last line (for proper packing). Calculate the linelen based on the last element in the this list.
* Test_ioctl and test_tarfile are skipped on MacOS9.Jack Jansen2003-03-071-0/+2
|
* Removed unused variableJack Jansen2003-03-071-1/+0
|
* Filter out macfs warning.Jack Jansen2003-03-071-0/+2
|
* Somebody must not have run the test before checking this in -- it hadTim Peters2003-03-071-1/+1
| | | | a fatal tab/space inconsistency under -tt.
* Got PythonStandalone to work again, mainly for debugging purposes (it's much ↵Jack Jansen2003-03-072-6/+6
| | | | easier to debug GUSI errors in a static build).
* test_string_headerinst_eq(): Another Jason test :)Barry Warsaw2003-03-071-0/+14
|
* - The extended type structure used for heap types (new-styleGuido van Rossum2003-03-073-50/+59
| | | | | classes defined by Python code using a class statement) is now exported from object.h as PyHeapTypeObject. (SF patch #696193.)
* Minor clarification about the ob_size field.Fred Drake2003-03-071-3/+3
|
* Make tarfile raise ImportError on MacOS9. The pathname handling needs work, ↵Jack Jansen2003-03-071-0/+7
| | | | and I don't have time to fix it. I'll file a bug report.
* The filename fix of the previous checkin was complete bogus, the problem is ↵Jack Jansen2003-03-071-3/+3
| | | | elsewhere. Retracting.
* Two fixes to make this test pass on MacOS9:Jack Jansen2003-03-071-4/+4
| | | | | | | - the test was sloppy about filenames: "0-REGTYPE-TEXT" was used where the archive held "/0-REGTYPE-TEXT". - tarfile extracts all files in binary mode, but the test expected to be able to read and compare text files in text mode. Use universal text mode.
* Test that os.utime and os.chmod actually exist before using them.Jack Jansen2003-03-071-4/+7
|
* Broke down and made it work for Python 2.0 and up. (Older versionsGuido van Rossum2003-03-071-24/+25
| | | | | | | would have required refraining from using string methods -- too painful.) Changed the -s option so that multiple -s options are cumulative.
* fix name of db2pickleSkip Montanaro2003-03-071-1/+1
|
* SF patch #693753: fix for bug 639806: default for dict.popRaymond Hettinger2003-03-066-11/+51
| | | | (contributed by Michael Stone.)
* Repaired a misleading comment Barry inherited from me.Tim Peters2003-03-061-1/+1
|
* First try to use the OSATerminology module to get the terminologyJack Jansen2003-03-061-9/+36
| | | | | | | resources before reverting to manually reading the resources. Unfortunately there is still a bug in here somewhere: it doesn't work for all applications.
* Build the OSATerminology module on MacOSX.Jack Jansen2003-03-061-0/+2
|
* Various tweaks by Jack because of the different module name, adaptationJack Jansen2003-03-061-43/+74
| | | | to the Python style, etc.
* Module to get OSA terminology description through the "official channels",Jack Jansen2003-03-061-0/+70
| | | | | | in stead of manually getting the AETE/AEUT resource. Donated by Donovan Preston. This is his original code (but with the filename changed) checked in for reference only.
* Fix SF bug #697256, PyMarshal_WriteShortToFile() documented, but not implementedNeal Norwitz2003-03-062-7/+0
| | | | Remove prototype and doc. Backport candidate.
* _split_ascii(): In the clause where curlen + partlen > maxlen, if theBarry Warsaw2003-03-061-1/+8
| | | | | | part itself is longer than maxlen, and we aren't already splitting on whitespace, then we recursively split the part on whitespace and append that to the this list.
* test_long_received_header(): Another test case for folding longBarry Warsaw2003-03-061-0/+15
| | | | | Received headers (first on semis then on whitespace), given by Jason Mastaler.
* Reverted the previous change to read() and readline().Raymond Hettinger2003-03-061-18/+28
| | | | | | Kevin Jacobs found that the code simplification did not exactly match the semantics of the original. Regression test cases were requested.
* Add a note explaining why you shouldn't try to compute mean andGuido van Rossum2003-03-061-0/+14
| | | | | standard deviation. Also add an XXX comment wondering if we should refrain from using itertools.repeat().
* test_whitespace_eater_unicode(): Test of the last outstanding bug inBarry Warsaw2003-03-061-0/+8
| | | | SF # 640110.
* __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:-)