]> granicus.if.org Git - python/log
python
22 years agoAccept commas in unquoted attribute values.
Fred Drake [Fri, 14 Mar 2003 16:21:57 +0000 (16:21 +0000)]
Accept commas in unquoted attribute values.
This closes SF patch #669683.

22 years agoSF patch #701907: More use of fast_next_opcode
Raymond Hettinger [Fri, 14 Mar 2003 01:37:42 +0000 (01:37 +0000)]
SF patch #701907: More use of fast_next_opcode

My previous patches should have used fast_next_opcode
in a few places instead of continue.

Also, applied one PyInt_AS_LONG macro in a place where
the type had already been checked.

22 years agoTake out my (long since disabled) POSIX signal mask handling code.
Michael W. Hudson [Thu, 13 Mar 2003 13:56:53 +0000 (13:56 +0000)]
Take out my (long since disabled) POSIX signal mask handling code.

I'm not going to have the time or energy to get this working x-platform
-- anyone who does is welcome to the code!

22 years agoMove setting of ioready 'wait' earlier in call chain, to
Kurt B. Kaiser [Wed, 12 Mar 2003 20:52:00 +0000 (20:52 +0000)]
Move setting of ioready 'wait' earlier in call chain, to
rpc.SocketIO.main() and asyncreturn().  Improve comment.

22 years agoFilter out the depracation warning for macfs.
Jack Jansen [Wed, 12 Mar 2003 13:47:39 +0000 (13:47 +0000)]
Filter out the depracation warning for macfs.

22 years agoSF bug #699237: Tutorial uses omitted slice indices before explaining them
Raymond Hettinger [Wed, 12 Mar 2003 04:46:52 +0000 (04:46 +0000)]
SF bug #699237: Tutorial uses omitted slice indices before explaining them

Moved up the explanation of slice default arguments.

22 years agoSF bug #699934: Obscure error message
Raymond Hettinger [Wed, 12 Mar 2003 04:25:42 +0000 (04:25 +0000)]
SF bug #699934: Obscure error message

Clarify error message for mro conflicts.

22 years agoUpdate the package version number
Barry Warsaw [Wed, 12 Mar 2003 03:43:09 +0000 (03:43 +0000)]
Update the package version number

22 years agotest_whitespace_eater_unicode(): Make this test Python 2.1 compatible.
Barry Warsaw [Wed, 12 Mar 2003 03:14:11 +0000 (03:14 +0000)]
test_whitespace_eater_unicode(): Make this test Python 2.1 compatible.

22 years agoPython 2.1 doesn't have True and False
Barry Warsaw [Wed, 12 Mar 2003 02:54:17 +0000 (02:54 +0000)]
Python 2.1 doesn't have True and False

22 years agoAdd a simple Apple Help book to the framework.
Jack Jansen [Tue, 11 Mar 2003 23:07:08 +0000 (23:07 +0000)]
Add a simple Apple Help book to the framework.

22 years agoAdding MacPython online help. Only the basics are installed, with a
Jack Jansen [Tue, 11 Mar 2003 22:59:26 +0000 (22:59 +0000)]
Adding MacPython online help. Only the basics are installed, with a
placeholder for the full documentation (pointing to the online docs
and explaining you can also install them locally to make them
searchable, etc).

22 years agoM rpc.py
Kurt B. Kaiser [Tue, 11 Mar 2003 22:55:56 +0000 (22:55 +0000)]
M rpc.py
M run.py
1. Clarify that rpc.SocketIO._getresponse() currently blocks on socket.
2. Improve exception handling in subprocess when GUI terminates abruptly.

22 years agoThis file was terribly outdated. The example is still silly (and won't
Jack Jansen [Tue, 11 Mar 2003 21:50:21 +0000 (21:50 +0000)]
This file was terribly outdated. The example is still silly (and won't
work), but at least the rest of the text is okay now.

22 years agoAllow unicode pathnames where FSRefs are expected. Fixes 696253.
Jack Jansen [Tue, 11 Mar 2003 21:48:57 +0000 (21:48 +0000)]
Allow unicode pathnames where FSRefs are expected. Fixes 696253.

22 years agoFix spelling.
Raymond Hettinger [Tue, 11 Mar 2003 21:43:55 +0000 (21:43 +0000)]
Fix spelling.

22 years agoOpen with O_NONBLOCK to avoid hanging on open().
Greg Ward [Tue, 11 Mar 2003 16:53:13 +0000 (16:53 +0000)]
Open with O_NONBLOCK to avoid hanging on open().

22 years agoAdd 'audio' resource.
Guido van Rossum [Tue, 11 Mar 2003 14:46:48 +0000 (14:46 +0000)]
Add 'audio' resource.

ALERT! A month ago or so I made test_ossaudiodev.py require the
'audio' resource, but I didn't make the necessary changes to
regrtest.py.  This means that *nobody* has been testing the oss module
all that time!

22 years agoPatch by Andrew Straw: use urllib2 so proxie access works.
Jack Jansen [Tue, 11 Mar 2003 14:37:19 +0000 (14:37 +0000)]
Patch by Andrew Straw: use urllib2 so proxie access works.

22 years agoAdjust tests for no newline appending to MIMEText.__init__()'s _text
Barry Warsaw [Tue, 11 Mar 2003 05:10:46 +0000 (05:10 +0000)]
Adjust tests for no newline appending to MIMEText.__init__()'s _text
argument.

22 years agobeta 1
Barry Warsaw [Tue, 11 Mar 2003 05:05:21 +0000 (05:05 +0000)]
beta 1

22 years agoAdjust tests for no newline appending to MIMEText.__init__()'s _text
Barry Warsaw [Tue, 11 Mar 2003 05:04:54 +0000 (05:04 +0000)]
Adjust tests for no newline appending to MIMEText.__init__()'s _text
argument.

22 years ago__init__(): Don't add a newline to _text if it doesn't already end in
Barry Warsaw [Tue, 11 Mar 2003 05:04:09 +0000 (05:04 +0000)]
__init__(): Don't add a newline to _text if it doesn't already end in
one.  Possibly controversial.

22 years agoFor email 2.5b1, we no longer add a trailing newline to
Barry Warsaw [Tue, 11 Mar 2003 05:03:25 +0000 (05:03 +0000)]
For email 2.5b1, we no longer add a trailing newline to
MIMEText.__init__()'s _text argument if it doesn't already end in a
newline.  This may be controversial.

22 years agobody_line_iterator(): Accept optional decode argument, pass through to
Barry Warsaw [Tue, 11 Mar 2003 04:41:35 +0000 (04:41 +0000)]
body_line_iterator(): Accept optional decode argument, pass through to
Message.get_payload().

22 years agobody_line_iterator() now takes a decode argument.
Barry Warsaw [Tue, 11 Mar 2003 04:40:14 +0000 (04:40 +0000)]
body_line_iterator() now takes a decode argument.

22 years agoget_payload(): Teach this about various uunencoded
Barry Warsaw [Tue, 11 Mar 2003 04:33:30 +0000 (04:33 +0000)]
get_payload(): Teach this about various uunencoded
Content-Transfer-Encodings

22 years agotest_get_decoded_uu_payload(): A new test for
Barry Warsaw [Tue, 11 Mar 2003 04:31:37 +0000 (04:31 +0000)]
test_get_decoded_uu_payload(): A new test for
Content-Transfer-Encoding: x-uuencode

22 years agoM PyShell.py
Kurt B. Kaiser [Mon, 10 Mar 2003 20:42:24 +0000 (20:42 +0000)]
M PyShell.py
M rpc.py
Improve exception handing if peer process has terminated.

22 years agoA interruptmodule.c
Kurt B. Kaiser [Mon, 10 Mar 2003 20:41:07 +0000 (20:41 +0000)]
A interruptmodule.c
M setup.py
Implements an interrupt extension module which allows a subthread
to raise an interrupt in the main thread.

22 years agospecialsre, escapesre: In SF bug #663369, Matthew Woodcraft points out
Barry Warsaw [Mon, 10 Mar 2003 19:20:18 +0000 (19:20 +0000)]
specialsre, escapesre: In SF bug #663369, Matthew Woodcraft points out
that backslashes must be escaped in character sets.

22 years agotest_escape_backslashes(): A test for SF bug #663369 by Matthew Woodcraft.
Barry Warsaw [Mon, 10 Mar 2003 19:18:34 +0000 (19:18 +0000)]
test_escape_backslashes(): A test for SF bug #663369 by Matthew Woodcraft.

22 years ago_bdecode(): Remove redundant check.
Barry Warsaw [Mon, 10 Mar 2003 17:36:04 +0000 (17:36 +0000)]
_bdecode(): Remove redundant check.

22 years agoFix base class
Barry Warsaw [Mon, 10 Mar 2003 17:00:43 +0000 (17:00 +0000)]
Fix base class

22 years agoUse ndiffAssertEqual in a couple of places for better error reporting.
Barry Warsaw [Mon, 10 Mar 2003 16:59:34 +0000 (16:59 +0000)]
Use ndiffAssertEqual in a couple of places for better error reporting.

22 years agoDescribe what happens when decode=True and the payload has bogus
Barry Warsaw [Mon, 10 Mar 2003 16:13:50 +0000 (16:13 +0000)]
Describe what happens when decode=True and the payload has bogus
base64 data.

22 years agoget_payload(): If we get a low-level binascii.Error when base64
Barry Warsaw [Mon, 10 Mar 2003 16:13:14 +0000 (16:13 +0000)]
get_payload(): If we get a low-level binascii.Error when base64
decoding the payload, just return it as-is.

22 years agotest_broken_base64_payload(): Test for crash in low-level binascii
Barry Warsaw [Mon, 10 Mar 2003 16:09:51 +0000 (16:09 +0000)]
test_broken_base64_payload(): Test for crash in low-level binascii
module when decoding a message with broken base64.

22 years agoPatch #700839: Fix bugs in the plural handling.
Martin v. Löwis [Mon, 10 Mar 2003 16:01:43 +0000 (16:01 +0000)]
Patch #700839: Fix bugs in the plural handling.

22 years ago[Patch #649762] Fix for asynchat endless loop
Andrew M. Kuchling [Mon, 10 Mar 2003 15:16:54 +0000 (15:16 +0000)]
[Patch #649762] Fix for asynchat endless loop
When the null string is used as the terminator, it used to be the same
as None, meaning "collect all the data".  In the current code, however, it
falls into an endless loop; this change reverts to the old behavior.

22 years ago_split_ascii() [method and function]: Don't join the lines just to
Barry Warsaw [Mon, 10 Mar 2003 15:14:08 +0000 (15:14 +0000)]
_split_ascii() [method and function]: Don't join the lines just to
split them again.  Simply return them as chunk lists.

_encode_chunks(): Don't add more folding whitespace than necessary.

22 years agoUse isinstance() instead of type comparison
Andrew M. Kuchling [Mon, 10 Mar 2003 15:12:00 +0000 (15:12 +0000)]
Use isinstance() instead of type comparison

22 years agotest_another_long_multiline_header(): Yet another formatting test.
Barry Warsaw [Mon, 10 Mar 2003 15:11:29 +0000 (15:11 +0000)]
test_another_long_multiline_header(): Yet another formatting test.

22 years agoopenmixer()'s 'mode' parameter has been removed.
Greg Ward [Mon, 10 Mar 2003 03:18:19 +0000 (03:18 +0000)]
openmixer()'s 'mode' parameter has been removed.

22 years ago<sys/soundcard.h> seems to exist on both Linux and FreeBSD, so include
Greg Ward [Mon, 10 Mar 2003 03:17:06 +0000 (03:17 +0000)]
<sys/soundcard.h> seems to exist on both Linux and FreeBSD, so include
it instead of the OS-specific <linux/soundcard.h> or <machine/soundcard.h>.

Mixers devices have an ioctl-only interface, no read/write -- so the
flags passed to open() don't really matter.  Thus, drop the 'mode'
parameter to openmixer() (ie. second arg to newossmixerobject()) and
always open mixers with O_RDWR.

22 years agoExpand description of ossaudiodev.error exception.
Greg Ward [Mon, 10 Mar 2003 03:05:21 +0000 (03:05 +0000)]
Expand description of ossaudiodev.error exception.
Improve descriptions of open(), openmixer().

22 years agoRewrite intro paragraphs and add a "See also" box for the link to the
Greg Ward [Mon, 10 Mar 2003 02:09:51 +0000 (02:09 +0000)]
Rewrite intro paragraphs and add a "See also" box for the link to the
official OSS docs.

Markup fixes: change \code{} variously to \function{}, \method{}, or
\constant{} as appropriate.

22 years agoFix two unformatted lists: one is now an 'enumerate' environment, the
Greg Ward [Mon, 10 Mar 2003 00:24:42 +0000 (00:24 +0000)]
Fix two unformatted lists: one is now an 'enumerate' environment, the
other a 'tableii'.

Formatting/typo fix.

22 years agoAdd libossaudiodev.tex.
Greg Ward [Mon, 10 Mar 2003 00:07:14 +0000 (00:07 +0000)]
Add libossaudiodev.tex.

22 years agoWrap all paragraphs to 72 columns.
Greg Ward [Sun, 9 Mar 2003 23:57:34 +0000 (23:57 +0000)]
Wrap all paragraphs to 72 columns.
Two spaces between sentences.
Fix em-dashes -- should be "---" not " - ".
Spelling fix.

22 years agoDocumentation for the ossaudiodev module.
Greg Ward [Sun, 9 Mar 2003 23:34:52 +0000 (23:34 +0000)]
Documentation for the ossaudiodev module.

Initial revision supplied by Nicholas FitzRoy-Dale <wzdd@lardcave.net>
(emailed to me [gward@python.net] 2003-03-08 23:37 +1100).

22 years agoSF patch #691928: Use datetime in _strptime
Raymond Hettinger [Sun, 9 Mar 2003 07:44:42 +0000 (07:44 +0000)]
SF patch #691928: Use datetime in _strptime
Contributed by Brett Cannon.

To prevent code duplication, I patched _strptime to use datetime's date
object to do Julian day, Gregorian, and day of the week calculations.

Patch also includes new regression tests to test results and the
calculation gets triggered.

Very minor comment changes and the contact email are also changed.

22 years agoSf patch #700047: unicode object leaks refcount on resizing
Raymond Hettinger [Sun, 9 Mar 2003 07:30:43 +0000 (07:30 +0000)]
Sf patch #700047: unicode object leaks refcount on resizing
Contributed by Hye-Shik Chang.

22 years agoAdd contributor name.
Raymond Hettinger [Sun, 9 Mar 2003 07:19:38 +0000 (07:19 +0000)]
Add contributor name.

22 years agoSF patch #667730: More DictMixin
Raymond Hettinger [Sun, 9 Mar 2003 07:05:43 +0000 (07:05 +0000)]
SF patch #667730: More DictMixin

* Adds missing pop() methods to weakref.py
* Expands test suite to broaden coverage of objects with
  a mapping interface.

Contributed by Sebastien Keim.

22 years agoSF 698520: Iterator for urllib.URLOpener
Raymond Hettinger [Sun, 9 Mar 2003 05:33:33 +0000 (05:33 +0000)]
SF 698520:  Iterator for urllib.URLOpener
Contributed by Brett Cannon.

22 years ago[ 684677 ] Allow freeze to exclude implicits
Just van Rossum [Sat, 8 Mar 2003 19:50:38 +0000 (19:50 +0000)]
[ 684677 ] Allow freeze to exclude implicits

22 years agoSkip the test if TESTFN_ENCODING is None. Fixes #699386.
Martin v. Löwis [Sat, 8 Mar 2003 10:25:31 +0000 (10:25 +0000)]
Skip the test if TESTFN_ENCODING is None. Fixes #699386.

22 years ago_split_ascii(): lstrip the individual lines in the ascii split lines,
Barry Warsaw [Fri, 7 Mar 2003 23:24:34 +0000 (23:24 +0000)]
_split_ascii(): lstrip the individual lines in the ascii split lines,
since we'll be adding our own continuation whitespace later.

22 years agotest_long_unbreakable_lines_with_continuation(): Another funky example
Barry Warsaw [Fri, 7 Mar 2003 23:23:04 +0000 (23:23 +0000)]
test_long_unbreakable_lines_with_continuation(): Another funky example
from Jason Mastaler :)

22 years agodecode_rfc2231(): RFC 2231 allows leaving out both the charset and
Barry Warsaw [Fri, 7 Mar 2003 22:46:41 +0000 (22:46 +0000)]
decode_rfc2231(): RFC 2231 allows leaving out both the charset and
language without including any single quotes.

22 years agotest_rfc2231_no_language_or_charset(): RFC 2231 allows leaving out
Barry Warsaw [Fri, 7 Mar 2003 22:45:55 +0000 (22:45 +0000)]
test_rfc2231_no_language_or_charset(): RFC 2231 allows leaving out
both the charset and language without including any single quotes.

22 years agoDon't quote the path to Python unless the path contains an embedded space.
Tim Peters [Fri, 7 Mar 2003 21:10:21 +0000 (21:10 +0000)]
Don't quote the path to Python unless the path contains an embedded space.
Quoting the path doesn't work on Win2K (cmd.exe) regardless, this is just
a hack to let the test pass again on Win2K (so long as Python isn't
installed in a path that does contain an embedded space).  On Win2K it
looks like we'd also have to add a second pair of double quotes, around
the entire command line.

22 years agoWhitespace normalization.
Tim Peters [Fri, 7 Mar 2003 17:30:48 +0000 (17:30 +0000)]
Whitespace normalization.

22 years agowhitespace normalization
Barry Warsaw [Fri, 7 Mar 2003 15:58:51 +0000 (15:58 +0000)]
whitespace normalization

22 years agoThis test relied on significant trailing whitespace in a string literal.
Tim Peters [Fri, 7 Mar 2003 15:55:36 +0000 (15:55 +0000)]
This test relied on significant trailing whitespace in a string literal.
Evil.

22 years agoAdd a little more verbiage about the bsddb module/package change. It's
Skip Montanaro [Fri, 7 Mar 2003 15:45:15 +0000 (15:45 +0000)]
Add a little more verbiage about the bsddb module/package change.  It's
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.

22 years ago_write_headers(), _split_header(): All of the smarts for splitting
Barry Warsaw [Fri, 7 Mar 2003 15:43:17 +0000 (15:43 +0000)]
_write_headers(), _split_header(): All of the smarts for splitting
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.

22 years agoMore internal refinements of the ascii splitting algorithm.
Barry Warsaw [Fri, 7 Mar 2003 15:39:37 +0000 (15:39 +0000)]
More internal refinements of the ascii splitting algorithm.

_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.

22 years agoTest_ioctl and test_tarfile are skipped on MacOS9.
Jack Jansen [Fri, 7 Mar 2003 15:38:11 +0000 (15:38 +0000)]
Test_ioctl and test_tarfile are skipped on MacOS9.

22 years agoRemoved unused variable
Jack Jansen [Fri, 7 Mar 2003 15:37:31 +0000 (15:37 +0000)]
Removed unused variable

22 years agoFilter out macfs warning.
Jack Jansen [Fri, 7 Mar 2003 15:36:49 +0000 (15:36 +0000)]
Filter out macfs warning.

22 years agoSomebody must not have run the test before checking this in -- it had
Tim Peters [Fri, 7 Mar 2003 15:36:41 +0000 (15:36 +0000)]
Somebody must not have run the test before checking this in -- it had
a fatal tab/space inconsistency under -tt.

22 years agoGot PythonStandalone to work again, mainly for debugging purposes (it's much easier...
Jack Jansen [Fri, 7 Mar 2003 15:36:13 +0000 (15:36 +0000)]
Got PythonStandalone to work again, mainly for debugging purposes (it's much easier to debug GUSI errors in a static build).

22 years agotest_string_headerinst_eq(): Another Jason test :)
Barry Warsaw [Fri, 7 Mar 2003 15:35:47 +0000 (15:35 +0000)]
test_string_headerinst_eq(): Another Jason test :)

22 years ago- The extended type structure used for heap types (new-style
Guido van Rossum [Fri, 7 Mar 2003 15:13:17 +0000 (15:13 +0000)]
- The extended type structure used for heap types (new-style
  classes defined by Python code using a class statement) is now
  exported from object.h as PyHeapTypeObject.  (SF patch #696193.)

22 years agoMinor clarification about the ob_size field.
Fred Drake [Fri, 7 Mar 2003 15:02:03 +0000 (15:02 +0000)]
Minor clarification about the ob_size field.

22 years agoMake tarfile raise ImportError on MacOS9. The pathname handling needs work, and I...
Jack Jansen [Fri, 7 Mar 2003 13:37:32 +0000 (13:37 +0000)]
Make tarfile raise ImportError on MacOS9. The pathname handling needs work, and I don't have time to fix it. I'll file a bug report.

22 years agoThe filename fix of the previous checkin was complete bogus, the problem is elsewhere...
Jack Jansen [Fri, 7 Mar 2003 13:27:53 +0000 (13:27 +0000)]
The filename fix of the previous checkin was complete bogus, the problem is elsewhere. Retracting.

22 years agoTwo fixes to make this test pass on MacOS9:
Jack Jansen [Fri, 7 Mar 2003 12:50:45 +0000 (12:50 +0000)]
Two fixes to make this test pass on MacOS9:
- 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.

22 years agoTest that os.utime and os.chmod actually exist before using them.
Jack Jansen [Fri, 7 Mar 2003 12:47:06 +0000 (12:47 +0000)]
Test that os.utime and os.chmod actually exist before using them.

22 years agoBroke down and made it work for Python 2.0 and up. (Older versions
Guido van Rossum [Fri, 7 Mar 2003 01:33:18 +0000 (01:33 +0000)]
Broke down and made it work for Python 2.0 and up.  (Older versions
would have required refraining from using string methods -- too
painful.)

Changed the -s option so that multiple -s options are cumulative.

22 years agofix name of db2pickle
Skip Montanaro [Fri, 7 Mar 2003 00:47:40 +0000 (00:47 +0000)]
fix name of db2pickle

22 years agoSF patch #693753: fix for bug 639806: default for dict.pop
Raymond Hettinger [Thu, 6 Mar 2003 23:54:28 +0000 (23:54 +0000)]
SF patch #693753:  fix for bug 639806: default for dict.pop
(contributed by Michael Stone.)

22 years agoRepaired a misleading comment Barry inherited from me.
Tim Peters [Thu, 6 Mar 2003 23:41:58 +0000 (23:41 +0000)]
Repaired a misleading comment Barry inherited from me.

22 years agoFirst try to use the OSATerminology module to get the terminology
Jack Jansen [Thu, 6 Mar 2003 23:04:38 +0000 (23:04 +0000)]
First try to use the OSATerminology module to get the terminology
resources before reverting to manually reading the resources.

Unfortunately there is still a bug in here somewhere: it doesn't work
for all applications.

22 years agoBuild the OSATerminology module on MacOSX.
Jack Jansen [Thu, 6 Mar 2003 23:03:43 +0000 (23:03 +0000)]
Build the OSATerminology module on MacOSX.

22 years agoVarious tweaks by Jack because of the different module name, adaptation
Jack Jansen [Thu, 6 Mar 2003 23:02:59 +0000 (23:02 +0000)]
Various tweaks by Jack because of the different module name, adaptation
to the Python style, etc.

22 years agoModule to get OSA terminology description through the "official channels",
Jack Jansen [Thu, 6 Mar 2003 23:02:04 +0000 (23:02 +0000)]
Module to get OSA terminology description through the "official channels",
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.

22 years agoFix SF bug #697256, PyMarshal_WriteShortToFile() documented, but not implemented
Neal Norwitz [Thu, 6 Mar 2003 22:04:24 +0000 (22:04 +0000)]
Fix SF bug #697256, PyMarshal_WriteShortToFile() documented, but not implemented

Remove prototype and doc.  Backport candidate.

22 years ago_split_ascii(): In the clause where curlen + partlen > maxlen, if the
Barry Warsaw [Thu, 6 Mar 2003 20:33:04 +0000 (20:33 +0000)]
_split_ascii(): In the clause where curlen + partlen > maxlen, if the
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.

22 years agotest_long_received_header(): Another test case for folding long
Barry Warsaw [Thu, 6 Mar 2003 20:31:02 +0000 (20:31 +0000)]
test_long_received_header(): Another test case for folding long
Received headers (first on semis then on whitespace), given by Jason
Mastaler.

22 years agoReverted the previous change to read() and readline().
Raymond Hettinger [Thu, 6 Mar 2003 16:31:48 +0000 (16:31 +0000)]
Reverted the previous change to read() and readline().
Kevin Jacobs found that the code simplification did not
exactly match the semantics of the original.  Regression
test cases were requested.

22 years agoAdd a note explaining why you shouldn't try to compute mean and
Guido van Rossum [Thu, 6 Mar 2003 16:11:17 +0000 (16:11 +0000)]
Add a note explaining why you shouldn't try to compute mean and
standard deviation.  Also add an XXX comment wondering if we should
refrain from using itertools.repeat().

22 years agotest_whitespace_eater_unicode(): Test of the last outstanding bug in
Barry Warsaw [Thu, 6 Mar 2003 16:11:14 +0000 (16:11 +0000)]
test_whitespace_eater_unicode(): Test of the last outstanding bug in
SF # 640110.

22 years ago__unicode__(): When converting to a unicode string, we need to
Barry Warsaw [Thu, 6 Mar 2003 16:10:30 +0000 (16:10 +0000)]
__unicode__(): When converting to a unicode string, we need to
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.

22 years agoSimpler way to write reindent(), suggested by Raymond H.
Guido van Rossum [Thu, 6 Mar 2003 13:09:09 +0000 (13:09 +0000)]
Simpler way to write reindent(), suggested by Raymond H.

22 years agoRemoved superfluous \r.
Sjoerd Mullender [Thu, 6 Mar 2003 12:53:07 +0000 (12:53 +0000)]
Removed superfluous \r.

22 years agotest_rfc2047_multiline(): Test case for SF bug #640110.
Barry Warsaw [Thu, 6 Mar 2003 06:38:29 +0000 (06:38 +0000)]
test_rfc2047_multiline(): Test case for SF bug #640110.

22 years agodecode_header(): Typo when appending an unencoded chunk to the
Barry Warsaw [Thu, 6 Mar 2003 06:37:42 +0000 (06:37 +0000)]
decode_header(): Typo when appending an unencoded chunk to the
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).