Commit graph

5674 commits

Author SHA1 Message Date
Tim Peters
8044055d82 Somebody made list.__dict__ grow a '__doc__' key, but apparently didn't
run the test suite afterwards.  Either that, or whether '__doc__' shows
up is platform-dependent!
2002-02-19 04:25:19 +00:00
Neal Norwitz
45bec8c7fc SF #515023. Make _DummyThread.join() signature match base class (Thread) 2002-02-19 03:01:36 +00:00
Steven M. Gava
82c6682bb7 further work on config system 2002-02-18 01:45:43 +00:00
Steven M. Gava
4974575609 handle user theme and key set deletion 2002-02-18 01:43:11 +00:00
Tim Peters
18e6778bcd Repair so that importing socket doesn't blow up on platforms that lack
SSL support.  test_socket.py passes again on Windows.

Added an XXX about adding _ssl exports to the __all__ list (it doesn't
appear to be doing anything about that now, but since I don't have SSL
on this box I can't really tell).
2002-02-17 04:25:24 +00:00
Martin v. Löwis
b4779c3496 Patch #515598: removed unused import of os. 2002-02-16 23:16:53 +00:00
Martin v. Löwis
e12454f44a The Grande 'sendall()' patch, copied from release21-maint. Fixes #516715.
Replaces calls to socket.send() (which isn't guaranteed to send all data)
with the new socket.sendall() method.
2002-02-16 23:06:19 +00:00
Marc-André Lemburg
a5d2b4cb18 Break SSL support out of _socket module and place it into a new
helper module _ssl.

The support for the RAND_* APIs in _ssl is now only enabled
for OpenSSL 0.9.5 and up since they were added in that
release.

Note that socketmodule.* should really be renamed to _socket.* --
unfortunately, this seems to lose the CVS history of the file.

Please review and test... I was only able to test the header file
chaos in socketmodule.c/h on Linux. The test run through fine
and compiles don't give errors or warnings.

WARNING: This patch does *not* include changes to the various
non-Unix build process files.
2002-02-16 18:23:30 +00:00
Tim Peters
e4418609f7 Whitespace normalization. 2002-02-16 07:34:19 +00:00
Tim Peters
20882dd174 SF bug #516372: test_thread: unhandled exc. in thread
Fix exit races in test_thread.py and test_threaded_import.py.
I suspect the bug is provokable only under Linux (where child threads
seem to get lots of cycles before they get killed after the main thread
exits), or on multi-processor machines running other OSes.
Bugfix candidate.
2002-02-16 07:26:27 +00:00
Greg Ward
2e250b4378 Fix bug #511786 (2.2.1 candidate): ensure that custom-supplied headers
are preserved for redirected requests.
2002-02-11 20:46:10 +00:00
Neal Norwitz
34172d5316 SF #515020, delete global variables which are used only for temporary
values in for loops (dircase, prefix, sitedir).
2002-02-11 18:34:41 +00:00
Neal Norwitz
83bd70a7fa SF #515005, change "1 + ''" (which pychecker warns about being invalid)
into "raise Exception".
2002-02-11 18:26:02 +00:00
Neal Norwitz
f7fdedc320 SF #515022 remove unused variable 2002-02-11 18:18:29 +00:00
Neal Norwitz
aa38aa5435 SF #515009, delete global variable that was apparently used only
in a for loop.
2002-02-11 18:14:22 +00:00
Neal Norwitz
d5ba4aeab0 SF #515018, delete global variable that was apparently used only
in a list comprehension.
2002-02-11 18:12:06 +00:00
Neal Norwitz
f963b45dfd SF #515026, delete global variable that was apparently used only
in a for loop.
2002-02-11 18:11:09 +00:00
Neal Norwitz
bc9bc187aa SF #515024 remove unused variable 2002-02-11 18:06:21 +00:00
Neal Norwitz
f151625b59 SF #515021, print the refused list to the DEBUGSTREAM, so the parameter is used
Note:  There is a TBD (aka FIXME) for how best to handle the refused addresses
2002-02-11 18:05:05 +00:00
Neal Norwitz
4212ea4d7a SF #515012, cleanup: remove unused variable 2002-02-11 18:01:32 +00:00
Neal Norwitz
22c5d77d47 SF #515011, cleanup: remove "or 0" condition 2002-02-11 17:59:51 +00:00
Neal Norwitz
7fd41ccdb1 SF #515006, remove unnecessary import 2002-02-11 17:57:55 +00:00
Neal Norwitz
086ac007a3 SF #515004 cleanup
- remove unnecessary imports
  - rename dum -> dummy
2002-02-11 17:56:27 +00:00
Neal Norwitz
9fb289d826 SF #515000, print result of f.tell() in test() instead of ignoring 2002-02-11 17:52:18 +00:00
Marc-André Lemburg
a0af63b242 Corrected import behaviour for codecs which live outside the encodings
package.
2002-02-11 17:43:46 +00:00
Just van Rossum
005dbb219e on MacOSX/Darwin, use ranlib when building static libs. 2002-02-11 15:31:50 +00:00
Steven M. Gava
e28ee754b0 improvement to keybinding re-use check 2002-02-11 03:45:22 +00:00
Steven M. Gava
9f25e67dd7 base GetHighlight on GetThemeDict for better defaults 2002-02-11 02:51:18 +00:00
Steven M. Gava
46fa7bf86c further work on config saving 2002-02-11 02:28:19 +00:00
Steven M. Gava
052937f0b5 further work on config saving 2002-02-11 02:20:53 +00:00
Marc-André Lemburg
462004e90a Add IANA character set aliases to the encodings alias dictionary
and make alias lookup lazy.

Note that only those IANA character set aliases were added for which
we actually have codecs in the encodings package.
2002-02-10 21:36:20 +00:00
Fred Drake
4a02f9542f Added regression test for start()/stop() returning bogus NULL. 2002-02-08 21:29:22 +00:00
Guido van Rossum
5ff8cb4f1b Whitespace cleanup. 2002-02-08 20:41:34 +00:00
Neal Norwitz
af64263afc Fix typo 2002-02-08 20:13:53 +00:00
Fred Drake
63cd9bf488 Python 10 was a success, commemorate it\! 2002-02-08 20:13:47 +00:00
Thomas Heller
745b4609cb Make it 1.5.2 compatible again. 2002-02-08 14:41:31 +00:00
Marc-André Lemburg
bd3be8f0ca Fix to the UTF-8 encoder: it failed on 0-length input strings.
Fix for the UTF-8 decoder: it will now accept isolated surrogates
(previously it raised an exception which causes round-trips to
fail).

Added new tests for UTF-8 round-trip safety (we rely on UTF-8 for
marshalling Unicode objects, so we better make sure it works for
all Unicode code points, including isolated surrogates).

Bumped the PYC magic in a non-standard way -- please review. This
was needed because the old PYC format used illegal UTF-8 sequences
for isolated high surrogates which now raise an exception.
2002-02-07 11:33:49 +00:00
Marc-André Lemburg
9273ec726c Forgot to add the new emxccompiler.py from Andrew I. MacIntyre's
distutils patch for OS/2.

Here it is...
2002-02-06 18:22:48 +00:00
Marc-André Lemburg
3688a882d3 Fix for the UTF-8 memory allocation bug and the UTF-8 encoding
bug related to lone high surrogates.
2002-02-06 18:09:02 +00:00
Steven M. Gava
085eb1b372 further work on config system and config saving 2002-02-05 04:52:32 +00:00
Andrew M. Kuchling
3b388ec8b3 [Bug #220993; may also fix bug #479469] Fix flakiness when old
installations are present, by always unlinking the destination file
  before copying to it.  Without the unlink(), the copied file remains
  owned by its previous UID, causing the subsequent chmod() to fail.

Bugfix candidate, though it may cause changes on platforms where
  file ownership behaves differently.
2002-02-01 18:29:34 +00:00
Guido van Rossum
8cb6540652 Wesley Chun's SF patch 511380: add CGIHTTPServer error supt for Win32
This uses os.popen3 (if it exists) to ensure that errors from a
non-Python CGI script are logged.

Bugfix candidate.
2002-02-01 16:27:59 +00:00
Thomas Heller
0c350bfad0 package_dir must be converted from the distutils path conventions to
local conventions before being used by build_py.

Fixes SF bug #509288, probably a candidate for 2.2.1
2002-02-01 09:44:09 +00:00
Steven M. Gava
7cff66d469 improve user config dir handling 2002-02-01 03:02:37 +00:00
Steven M. Gava
a498af269c more work on configuration saving 2002-02-01 01:33:36 +00:00
Andrew M. Kuchling
b24231e088 Restrict the mode to the lowest four octal positions; higher positions
contain the type of the file (regular file, socket, link, &c.).
   This means that install_scripts will now print
   "changing mode of <file> to 775" instead of "... to 100775".

2.2 bugfix candidate, I suppose, though this isn't actually fixing a bug.
2002-01-31 22:08:38 +00:00
Marc-André Lemburg
2544f51036 OS/2 patches by Andrew I MacIntyre for distutils.
Closes patch #435381.
2002-01-31 18:56:00 +00:00
Fred Drake
1453754fcd string.split() docstring described the interpretation of the maxsplit
argument incorrectly.
This closes SF bug #505997.
2002-01-30 16:15:13 +00:00
Tim Peters
40915bf8dd Thanks to Detlef Lannert for pointing out a typo in the code that
uses _DummyMutex on platforms without threads.
2002-01-30 09:11:42 +00:00
Tim Peters
c7349ee2c6 New TemporaryFile implementation for Windows: this doesn't need a
TemproraryFileWrapper wrapper anymore, and should be immune from the
problem that a temp file inherited by a spawned process caused an
attempt to close the temp file in the spawning process to blow
up (the unlink in TemporaryFileWrapper.close() blew up with a
"Permission denied" error because, despite that the temp file got
closed in the spawning process, the spawned process still had it open
by virtue of C-level file descriptor inheritance).  In context,
that bug took days to figure out <wink/sigh>.
2002-01-30 07:47:51 +00:00