Jack Jansen
17d67f07cd
All set for 2.3 installer, except for upgrade of Vise version.
2002-09-10 21:15:44 +00:00
Tim Peters
4f4f4d70af
A few days ago a test was added here to ensure that creating an mmap
...
with a size larger than the underlying file worked on Windows. It
does <wink>. However, merely creating an mmap that way has the side
effect of growing the file on disk to match the specified size. A
*later* test assumed that the file on disk was still exactly as it was
before the new "size too big" test was added, but that's no longer true.
So added a hack at the end of the "size too big" test to truncate the
disk file back to its original size on Windows.
2002-09-10 20:49:15 +00:00
Jack Jansen
a0d1833639
Fixed typo spotted by Whomas Touters.
2002-09-10 20:07:34 +00:00
Barry Warsaw
034b47acfe
_parsebody(): Instead of raising a BoundaryError when no start
...
boundary could be found -- in a lax parser -- the entire body is
assigned to the message payload.
2002-09-10 16:14:56 +00:00
Barry Warsaw
b1c1de3805
Import _isstring() from the compatibility layer.
...
_handle_text(): Use _isstring() for stringiness test.
_handle_multipart(): Add a test before the ListType test, checking for
stringiness of the payload. String payloads for multitypes means a
message with broken MIME chrome was parsed by a lax parser. Instead
of raising a BoundaryError in those cases, the entire body is assigned
to the message payload (but since the content type is still
multipart/*, the Generator needs to be updated too).
2002-09-10 16:13:45 +00:00
Barry Warsaw
356afac41f
_isstring(): Factor out "stringiness" test, e.g. for StringType or
...
UnicodeType, which is different between Python 2.1 and 2.2.
2002-09-10 16:09:06 +00:00
Barry Warsaw
45d9bde6c1
_ascii_split(): Don't lstrip continuation lines. Closes SF bug #601392 .
2002-09-10 15:57:29 +00:00
Barry Warsaw
24d45df3f2
test_splitting_first_line_only_is_long(): New test for SF bug #601392 ,
...
broken wrapping of long ASCII headers.
2002-09-10 15:46:44 +00:00
Barry Warsaw
dad90c202a
A sample message with broken MIME boundaries.
2002-09-10 15:43:30 +00:00
Tim Peters
96940cf30d
extract_time(): Squash compiler warning about possibly information-
...
losing implicit double->long cast.
2002-09-10 15:37:28 +00:00
Martin v. Löwis
076b209ca4
Add missing return statement.
2002-09-10 15:04:41 +00:00
Raymond Hettinger
d3e0265373
Document type and semantics of the tp_print return value. Closes SF 606464.
2002-09-10 13:48:01 +00:00
Jack Jansen
47ec141963
Added include guards and C++ extern "C" {} constructs. Partial fix for #607253 .
...
Bugfix candidate.
2002-09-10 12:32:47 +00:00
Jack Jansen
2575022aef
Reverted previous change, I was confused.
2002-09-10 12:22:32 +00:00
Martin v. Löwis
6aa9fdb86a
Use utimes(2) where available to support microsecond timestamps.
2002-09-10 09:16:13 +00:00
Martin v. Löwis
a32c994129
Always generate floats for stat_result; fix configure test.
2002-09-09 16:17:47 +00:00
Martin v. Löwis
94717ed1d4
Patch #606592 : Subsecond timestamps in stat_result.
2002-09-09 14:24:16 +00:00
Andrew M. Kuchling
df453fd026
The .preprocess() method didn't work, because it didn't add the input file
...
to the command-line arguments. Fix this by adding the source filename.
2002-09-09 12:16:58 +00:00
Andrew M. Kuchling
4013cbd06b
Include an empty body when checking for a header file
...
(Bugfix candidate for 2.2, and likely 2.1 as well)
2002-09-09 12:10:00 +00:00
Martin v. Löwis
2412853f8e
Fix escaping of non-ASCII characters.
2002-09-09 06:17:05 +00:00
Raymond Hettinger
8a64d40949
Fix typo. Close SF Bug 606354.
2002-09-08 22:26:13 +00:00
Raymond Hettinger
a0e4d6ceaf
Clarified that the footnote applies to versions 1.5 and after instead of
...
just version 1.5. Closes SF bug 577793.
2002-09-08 21:10:54 +00:00
Raymond Hettinger
57e79459fa
shutil.copyfile(src,dst) was clobbering the file when the src and dst were
...
the same. Added check to verify the two names are not the same. Does not
check the actual files to see if there is a symbolic link.
Closes SF bug 490165 and Tzot's patch 604600.
2002-09-08 20:43:59 +00:00
Raymond Hettinger
513069028f
Fix API typo. The write buffer is not const. Closes SF 606216.
2002-09-08 04:39:28 +00:00
Raymond Hettinger
b2c729fe27
Extended IDLE's open module menu item to handle hierarchical module names.
...
Will look at doing something similar in import.c so that the effort won't
have to be repeated elsewhere.
Closes SF patch 600152.
2002-09-08 03:42:01 +00:00
Jeremy Hylton
d750036b20
A little refactoring.
...
Add read(), write(), and readwrite() helper functions to shorten poll
functions. Use get() instead of try/except KeyError for lookup.
XXX How could the lookup ever fail?
Remove module-level DEBUG flag.
Use iteritems() instead of items() when walking the socket map.
Reformat the functions I touched so that are consistently Pythonic.
2002-09-08 00:14:54 +00:00
Skip Montanaro
2c0d3224fc
tightened up the definition of \b and \B some more based upon discussion
...
after the last checkin.
2002-09-07 18:48:14 +00:00
Neal Norwitz
522076d1d6
Try to get test to pass on Windows
2002-09-07 05:56:21 +00:00
Raymond Hettinger
05212fc7f3
Change UserDict to IterableUserDict
2002-09-07 04:48:03 +00:00
Jack Jansen
796e5f75e2
Next few steps towards a 2.3 installer.
2002-09-07 00:10:31 +00:00
Jack Jansen
481fddfc46
First steps towards a 2.3 installer.
2002-09-06 23:37:07 +00:00
Jack Jansen
277fc7efce
Enable _AH module.
2002-09-06 23:33:40 +00:00
Jack Jansen
bc603547ae
Import Carbon.AH, not Carbon.Help
2002-09-06 23:33:31 +00:00
Jack Jansen
7f677f49ea
Reorganized order of help menu, and don't show Carbon documentation
...
entries on OS9 (where they are never available, and simply disabling
them might lead people to think otherwise).
2002-09-06 23:03:32 +00:00
Jack Jansen
25a8f0d5f8
Silly me, I enabled the old help module. Fixed.
2002-09-06 22:59:00 +00:00
Jack Jansen
b34101162d
Added carbon Help module.
2002-09-06 22:41:03 +00:00
Jack Jansen
521dd9f231
Upped the stack size to 256KB. test_class ran afoul of the 64K limit, and this is probably a better fix than lowering the recursion limit.
2002-09-06 21:59:21 +00:00
Jack Jansen
522e7694ed
Skip UDP testing for MacPython (for now), it hangs. This may be due to
...
GUSI/Threading interaction, I'm not sure, but I don't have the time to fix this right now.
2002-09-06 21:57:50 +00:00
Jack Jansen
fdf427f584
Updated the notes on building a binary installer.
2002-09-06 21:55:47 +00:00
Jack Jansen
997429a5f4
The script was very sloppy about which variables held source pathnames
...
and which held destination pathnames. Fixed.
2002-09-06 21:55:13 +00:00
Jack Jansen
1f74ed8c4c
Fixed a typo in the binary install notes
...
rewrapped: as usual with my files everything was far wider than 80 chars.
2002-09-06 21:00:55 +00:00
Jack Jansen
3a70e3f9ef
Get rid of non-ascii characters.
2002-09-06 20:43:28 +00:00
Jack Jansen
82a9b60b86
Use PyString_CHECK_INTERNED.
2002-09-06 20:42:27 +00:00
Jack Jansen
8ba4220637
Started on documentation for building a MacOSX binary installer.
...
Unfinished.
2002-09-06 20:24:51 +00:00
Jack Jansen
3337ea731b
Remove .pyo files too.
2002-09-06 20:23:09 +00:00
Jack Jansen
a6db44f169
Script to generate .pkg packages, donated by Dinu Gherman. This is his
...
original code, it still needs fiddling to make it work in general
circumstances.
2002-09-06 19:47:49 +00:00
Raymond Hettinger
ca2f537e32
Have os.environ() inherit from the iterable version of UserDict.
...
Closes SF bug 605731.
2002-09-06 19:36:31 +00:00
Raymond Hettinger
44c42b9cf3
Added a tutorial note and example regarding the scope of loop variables
...
in a list comprehension. Includes a justification and a comparision
to regular for-loops.
Closes SF bug 605047.
2002-09-06 18:06:04 +00:00
Walter Dörwald
9ab7dd4d5b
Add a test case that checks that the proper exception is raises
...
when the replacement from an encoding error callback is itself
unencodable.
2002-09-06 17:21:40 +00:00
Walter Dörwald
5ccaf8f129
Apply diff3.txt (plus additional documentation)
...
from SF patch http://www.python.org/sf/554192
This adds two new functions to mimetypes:
guess_all_extensions() which returns a list of all known
extensions for a mime type, and add_type() which adds one
mapping between a mime type and an extension.
2002-09-06 16:15:58 +00:00