summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* Patch #1426648: urllib proxy_bypass brokenGeorg Brandl2006-02-181-3/+10
|
* This should get test_timeout to pass when running on any python.org host. ↵Neal Norwitz2006-02-181-0/+5
| | | | Will backport
* Patch #1373643: The chunk module can now read chunks larger thanGeorg Brandl2006-02-181-1/+1
| | | | two gigabytes.
* Suppress new deprecation warnings when running theTim Peters2006-02-184-1/+16
| | | | | | | | | | | test suite. For urllib2, move the import of gopherlib into the only function that uses it: users (including the test suite) certainly shouldn't see a deprecation warning just because they import urllib2! If they actually use gopher_open(), fine, _then_ they should see a deprecation warning.
* Changed the new deprecation warning to show theTim Peters2006-02-181-1/+2
| | | | | code _importing_ gopherlib instead of gopherlib's call to warnings.warn.
* Whitespace normalization.Tim Peters2006-02-181-2/+0
|
* Move test case for HTTP response dict to httplib.Georg Brandl2006-02-172-5/+5
|
* Move "httpresponses" dict from urllib2 to httplib where it belongs.Georg Brandl2006-02-173-59/+61
|
* Patch #1417555: SimpleHTTPServer now returns Last-Modified headers.Georg Brandl2006-02-172-4/+7
|
* Add deprecation warning to modules deprecated since 2000.Georg Brandl2006-02-171-0/+3
|
* Bug #1430298: It is now possible to send a mail with an emptyGeorg Brandl2006-02-171-1/+4
| | | | return address using smtplib.
* The names of lambda functions are now properly displayed in pydoc.Georg Brandl2006-02-171-1/+1
|
* Merge ssize_t branch.Martin v. Löwis2006-02-151-1/+3
|
* New test code failed to close the file. This causedTim Peters2006-02-141-13/+12
| | | | | | | | | | test_file to fail on Windows in reality (can't delete a still-open file), but a new bare "except:" hid that test_file failed on Windows, and leaving behind the still-open TESTFN caused a cascade of bogus failures in later tests. So, close the file, and stop hiding failure to unlink.
* SF patch #1397960: When mixing file-iteration andThomas Wouters2006-02-121-1/+111
| | | | | | | readline/readlines/read/readinto, loudly break by raising ValueError, rather than silently deliver data out of order or hitting EOF prematurely. Probably not a bugfix candidate, even though it affects no 'working' code.
* Renamed _length_cue() to __length_hint__(). See:Armin Rigo2006-02-112-2/+6
| | | | http://mail.python.org/pipermail/python-dev/2006-February/060524.html
* Added function name to LogRecord.Vinay Sajip2006-02-091-5/+8
|
* Propagate exceptions from shutdown() if raiseExceptions is not set.Vinay Sajip2006-02-091-6/+14
| | | | Added 'extra' keyword argument handling to logging calls, as discussed on python-dev.
* Added lock acquisition/release around shared data structure manipulationVinay Sajip2006-02-091-19/+34
|
* Port relevant patches for SF 1409455 to the trunk for email 3.0/Python 2.5.Barry Warsaw2006-02-085-8/+20
| | | | Will port to Python 2.4.
* Added the cProfile module.Armin Rigo2006-02-086-66/+554
| | | | | | | | | | | | | | | | | | | | | | | Based on lsprof (patch #1212837) by Brett Rosen and Ted Czotter. With further editing by Michael Hudson and myself. History in svn repo: http://codespeak.net/svn/user/arigo/hack/misc/lsprof * Module/_lsprof.c is the internal C module, Lib/cProfile.py a wrapper. * pstats.py updated to display cProfile's caller/callee timings if available. * setup.py and NEWS updated. * documentation updates in the profiler section: - explain the differences between the three profilers that we have now - profile and cProfile can use a unified documentation, like (c)Pickle - mention that hotshot is "for specialized usage" now - removed references to the "old profiler" that no longer exists * test updates: - extended test_profile to cover delicate cases like recursion - added tests for the caller/callee displays - added test_cProfile, performing the same tests for cProfile * TO-DO: - cProfile gives a nicer name to built-in, particularly built-in methods, which could be backported to profile. - not tested on Windows recently!
* Removed defensive test in Handler.closeVinay Sajip2006-02-071-4/+3
|
* Saved and restored logging._handlerList at the same time as saving/restoring ↵Vinay Sajip2006-02-071-0/+4
| | | | logging._handlers.
* Patch #1412872: zipfile: use correct system type on unixy systems.Martin v. Löwis2006-02-051-2/+6
|
* Get test_logging to not hang when running under regrtest.py -R ::Neal Norwitz2006-02-052-5/+6
| | | | | | | | | | | | | | Not sure why/how _handlers/_handlerList is out of sync. This could indicate a deeper problem. In test_logging, the only absolutely necessary change to get working was tcpserver.abort = 1. But we don't want to wait infinitely to join the threads, so give a 2.0 second timeout. There doesn't appear to be a need for a local abort variable in serve_until_stopped, so just use the instance member. Note the problem is only on HEAD, not in 2.4.
* Patch #1407135, bug #1424041, make mmap.mmap(-1, length) work the sameNeal Norwitz2006-02-052-2/+13
| | | | | | | | | | | on both Unix (SVR4 and BSD) and Windows. Restores behaviour of passing -1 for anonymous memory on Unix. Use MAP_ANONYMOUS instead of _ANON since the latter is deprecated according to Linux (gentoo) man pages. Should we continue to allow mmap.mmap(0, length) to work on Windows? 0 is a valid fd. Will backport bugfix portions.
* Resolves SF bug #1423972.Barry Warsaw2006-02-041-2/+4
|
* Fix typoNeal Norwitz2006-02-041-1/+1
|
* parsedate_tz(): Minor cleanup.Barry Warsaw2006-02-032-3/+11
| | | | | Port from Python 2.3/email 2.5: Add a test for the tm_yday field is 1 in the return of parsedate().
* Patch #1413711: Certain patterns of differences were making difflibGustavo Niemeyer2006-01-312-17/+31
| | | | | touch the recursion limit. The applied patch inlines the recursive __helper method in a non-recursive way.
* fix test import for use in standalone pybsddb project bsddb3 module as wellGregory P. Smith2006-01-291-1/+6
| | | | as python builtin bsddb.
* Whitespace normalization.Tim Peters2006-01-291-1/+1
|
* Try a number of ports, in case 9020 is already in use.Martin v. Löwis2006-01-291-3/+14
|
* Explicitly close the server socket.Martin v. Löwis2006-01-291-0/+2
|
* Work around a Solaris peculiarity that caused test_pty to sometimes fail: aThomas Wouters2006-01-281-1/+8
| | | | | | | | | tty opened by os.openpty() isn't always a tty according to os.isatty(), when it's tested inside the process that opened it. Doesn't affect actual functionality, as using a tty this way is rarely, if ever, useful. Ignoring the failure allows the test for actual functionality to continue. Will backport to 2.4-maint.
* Improved handling of syntax errors.Jeremy Hylton2006-01-272-1/+239
| | | | | | | | | | | | | | | | | Expand set of errors caught in set_context(). Some new errors, some old error messages changed for consistency. Fixed error checking in generator expression code. The first set of tests were impossible condition given the grammar. In general, the ast code uses REQ() for those sanity checks. Fix some error handling for augmented assignments. As comments in the code explain, set_context() ought to work here, but I got unexpected crashes when I tried it. Should come back to this. Add note to Grammar that yield expression is a special case. Add doctest cases for SyntaxErrors raised by ast.c.
* Add wrapper for DBEnv.set_tx_timeout method to allow time based DB_RECOVERGregory P. Smith2006-01-272-0/+5
| | | | (test cases and dbobj wrapping)
* There was a race condition where the connector would try to connectNeal Norwitz2006-01-251-0/+3
| | | | | | | | | | before the listener was ready (on gentoo x86 buildslave). This caused the listener to not exit normally since nobody connected to it (waited in accept()). The exception was raised in the other thread and the test failed. This fix doesn't completely eliminate the race, but should make it near impossible to trigger. Hopefully it's good enough.
* Remove generated test db filesNeal Norwitz2006-01-251-2/+3
|
* Fix bug #1413192, fix seg fault in bsddb if a txn was deleted before the env.Neal Norwitz2006-01-253-0/+28
| | | | Will backport.
* test_rude_shutdown(): Rewrote to use proper threadTim Peters2006-01-241-11/+19
| | | | synchronization and termination.
* Whitespace normalization.Tim Peters2006-01-241-4/+4
|
* Patch #1349118: urllib2 now supports user:pass@ style proxyMartin v. Löwis2006-01-241-6/+93
| | | | | specifications, raises IOErrors when proxies for unsupported protocols are defined, and uses the https proxy on https redirections.
* Repaired new test failures on Windows:Tim Peters2006-01-231-3/+12
| | | | | | | - The path separator isn't "/" on Windows. - Leaving behind a read-only file causes cascades of bogus failures on Windows.
* Whitespace normalization.Tim Peters2006-01-231-1/+1
|
* Disable this test until I can test on big-endian machines and get passingNeal Norwitz2006-01-231-1/+2
|
* Test zipimporter a bit more. Also get working with -R :: option for finding ↵Neal Norwitz2006-01-231-4/+122
| | | | ref leaks
* Convenience function to remove a possibly non-existant fileNeal Norwitz2006-01-231-14/+10
|
* Test getsignal() and some error conditionsNeal Norwitz2006-01-231-1/+23
|
* Use unittest and make sure a few other cases don't crashNeal Norwitz2006-01-231-2/+23
|