summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Make the tests pass under Python 2.1 but only by cheating. Python 2.1Barry Warsaw2002-09-281-0/+12
| | | | | doesn't know about the ansi-x3.4-1968 charset so skip two tests that rely on that (msg_32.txt and msg_33.txt).
* Add a test for SHORTEST encoding of utf-8 headers, and also updateBarry Warsaw2002-09-281-9/+16
| | | | some of the test values which change because of this.
* Use True/False everywhere, and other code cleanups.Barry Warsaw2002-09-282-18/+30
|
* Code cleanup and add docstrings.Barry Warsaw2002-09-281-2/+17
|
* Use True/False everywhere, and other code cleanups.Barry Warsaw2002-09-281-7/+11
|
* Use True/False everywhere.Barry Warsaw2002-09-281-5/+12
|
* is_multipart(): Use isinstance() instead of type equality.Barry Warsaw2002-09-281-1/+1
|
* Docstring and code cleanups, e.g. use True/False everywhere.Barry Warsaw2002-09-281-58/+62
|
* __init__(): Minor code cleanup.Barry Warsaw2002-09-281-1/+1
|
* Add a pychecker suppression.Barry Warsaw2002-09-281-0/+4
|
* (py-pychecker-run): Fix calculation of last command to include theBarry Warsaw2002-09-281-3/+8
| | | | filename of the current buffer.
* Use True/False everywhere.Barry Warsaw2002-09-281-20/+19
|
* Added a feature suggested by Martin v Loewis, where a new headerBarry Warsaw2002-09-281-37/+55
| | | | | | | | | | | | | encoding flag SHORTEST means to return the shortest encoding between base64 and qp. This is used for the header_enc for utf-8. SHORTEST isn't legal for body_enc. Also some code cleanup: - use True/False everywhere - use == instead of `is' in a few places - added _unicode() and make consistent the "is unicode" checks - update docstrings
* Allow internal whitespace in keys.Fred Drake2002-09-272-3/+10
| | | | Closes SF bug #583248; backporting to r22-maint branch.
* items(): New method, provided by Gustavo Niemeyer in SF bug #545096.Fred Drake2002-09-272-0/+40
|
* Added regression test for SF bug #561822: has_option() case sensitive.Fred Drake2002-09-271-0/+5
|
* has_option(): Use the option name transform consistently.Fred Drake2002-09-271-53/+49
| | | | | | | | Closes SF bug #561822. Integrate the "code cleanup and general bug fix patch" (SF bug #545096), contributed by Gustavo Niemeyer. This is the portion of that patch that does not add new functionality.
* Revert Rev 1.6Kurt B. Kaiser2002-09-271-9/+0
| | | | | | | | | "Merge Py Idle changes: Rev 1.7 [Python-idle] loewis Convert characters from the locale's encoding on output. Reject characters outside the locale's encoding on input." Not compatible with Python 2.2.1. Forwardport as a SF patch.
* Fix Bug 612886 copy/paste menu items failKurt B. Kaiser2002-09-263-1/+26
| | | | | | | | | | (cut vs. Cut etc.) Fix Bug 613006 Ctrl-x Unix Binding Clears Selection (do-nothing does something :) Leave some debugging prints behind, commented out M EditorWindow.py M config-keys.def M configHandler.py
* try executing 'less' in a parenthesized subshell - prevents systems likeSkip Montanaro2002-09-261-1/+1
| | | | | Solaris from squawking if less isn't available. See http://python.org/sf/612111 for details.
* Oops, must convert hyphens to underscores in keys of aliases dict.Guido van Rossum2002-09-261-1/+1
|
* test_unicode_error(): Comment this test out, since we still haveBarry Warsaw2002-09-261-8/+8
| | | | controversy.
* Fixing some RFC 2231 related issues as reported in the SpambayesBarry Warsaw2002-09-263-0/+66
| | | | | | | project, and with assistance from Oleg Broytmann. Specifically, added some new tests to make sure we handle RFC 2231 encoded parameters correctly. Two new data files were added which contain RFC 2231 encoded parameters.
* Fixing some RFC 2231 related issues as reported in the SpambayesBarry Warsaw2002-09-261-9/+39
| | | | | | | | | | | | | | | | | | | | | project, and with assistance from Oleg Broytmann. Specifically, get_param(), get_params(): Document that these methods may return parameter values that are either strings, or 3-tuples in the case of RFC 2231 encoded parameters. The application should be prepared to deal with such return values. get_boundary(): Be prepared to deal with RFC 2231 encoded boundary parameters. It makes little sense to have boundaries that are anything but ascii, so if we get back a 3-tuple from get_param() we will decode it into ascii and let any failures percolate up. get_content_charset(): New method which treats the charset parameter just like the boundary parameter in get_boundary(). Note that "get_charset()" was already taken to return the default Charset object. get_charsets(): Rewrite to use get_content_charset().
* Patch for the DEC Alpha under Linux, by Lee Busby.Guido van Rossum2002-09-261-0/+8
|
* Disable big charsets in UCS-4 builds. Works around #599377.Martin v. Löwis2002-09-261-0/+3
| | | | Will backport to 2.2
* Add encoding name in LookupError. Fixes #615013. Will backport to 2.2.Martin v. Löwis2002-09-261-2/+2
|
* Again, I did check in too many changes. Sorry.Thomas Heller2002-09-261-1/+1
|
* Add deprecation notices to the documentation to reflect recent additions toFred Drake2002-09-254-1/+19
| | | | PEP 4.
* __version__: Bump to 2.4Barry Warsaw2002-09-251-9/+16
| | | | | | | | | | | Move the imports of Parser and Message inside the message_from_string() and message_from_file() functions. This way just "import email" won't suck in most of the submodules of the package. Note: this will break code that relied on "import email" giving you a bunch of the submodules, but that was never documented and should not have been relied on.
* Update some comments about what version of the documentation toolsFred Drake2002-09-251-4/+3
| | | | code to use.
* Back out previous change.Neal Norwitz2002-09-252-3/+3
| | | | Quotes aren't necessary in case statements. Spotted by Neil Schemenauer.
* Fix SF # 614587, configure.in patch from Tim RiceNeal Norwitz2002-09-252-3/+3
| | | | Need to quote $GCC in case it isn't set.
* SF bug 613233: test_threadedtempfile hangsTim Peters2002-09-251-6/+4
| | | | | | | | | | | | | | A possibility to deadlock (on the hidden import lock) was created here in 2.3, seemingly when tempfile.py started to call functions in random.py. The cure is "the usual": don't spawn threads as a side effect of importing, when the spawned threads themselves do imports (directly or indirectly), and the code that spawned the threads is waiting for the threads to finish (they can't finish, because they're waiting for the import lock the spawner still holds). Worming around this is why the "test_main" mechanism was introduced in regrest, so it's a straightforward fix. NOT a bugfix candidate; the problem was introduced in 2.3.
* Fix SF # 591713, Fix "file:" URL to have right no. of /'s, by Bruce AthertonNeal Norwitz2002-09-252-1/+6
| | | | | | Add a test too. urljoin() would make file:/tmp/foo instead of file:///tmp/foo Bugfix candidate, I will backport.
* Finish & commit some docs for markup that's been in use for a while.Fred Drake2002-09-251-2/+29
|
* Add yet another alias for ASCII found in the field. Will backport toGuido van Rossum2002-09-251-0/+1
| | | | 2.2.2.
* Add regression test for a bug found in the version of the markupbaseFred Drake2002-09-251-0/+6
| | | | | | module used in the Zope TAL implementation. The bug was already fixed in the Python standard library, but the regression test would be good to keep around.
* Disable building of the fpectl module -- it's dangerous or uselessGuido van Rossum2002-09-251-3/+6
| | | | except in the hands of experts. Will backport to 2.2.2.
* Disable building of the fpectl module -- it's dangerous or uselessGuido van Rossum2002-09-251-14/+15
| | | | except in the hands of experts. Will backport to 2.2.2.
* Ok, read the source this time: PyErr_SetObject() does not steal a reference.Fred Drake2002-09-251-1/+1
|
* Another try at clarifying what goes into and comes out of Unicode objects.Fred Drake2002-09-241-12/+20
| | | | Document the indices() method of slice objects.
* Another try at clarifying what goes into and comes out of Unicode objects.Fred Drake2002-09-242-31/+46
|
* On Windows, select() does not accept empty lists.Thomas Heller2002-09-241-5/+9
| | | | | | Patch suggested by Guido, fixes SF item 611464. Bugfix candidate, will backport to release22-maint myself.
* I did fix too much - including winsock.h is sufficient.Thomas Heller2002-09-241-1/+1
|
* On Windows, call WSAGetLastError() to retrieve the error number.Thomas Heller2002-09-241-1/+7
| | | | Bugfix candidate, will backport to release22-maint myself.
* Clarify documentation for PyErr_SetObject() to describe the referenceFred Drake2002-09-241-1/+1
| | | | count behavior.
* Be more careful with the type of the xmlhandlersetter; it takes anFred Drake2002-09-241-1/+1
| | | | | | XML_Parser, which happens to be a pointer type, not an XML_Parser*. This generated warnings when compiled with Expat 1.95.5, which no longer defines XML_Parser to be void*.
* Remove spurious period.Fred Drake2002-09-241-1/+1
|
* Clarify that len() of a Unicode string returns the number of storage units,Fred Drake2002-09-241-0/+4
| | | | not abstract characters.