summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* Using repr() generates entries that the current stats package can'tNicholas Bastin2004-07-122-7/+7
| | | | collate, so setting it back to the function name
* Updated my email address to something that works <wink>.Barry Warsaw2004-07-121-1/+1
|
* Fix test case for when time.tzname[0] is either UTC or GMT. Also have testBrett Cannon2004-07-121-2/+7
| | | | output more telling details when there is a failure.
* Fix SF Bug #989066Nicholas Bastin2004-07-121-4/+4
|
* this is patchMichael W. Hudson2004-07-122-1/+38
| | | | | | | | [ 988698 ] compiler.transformer fix for (a, b) = 1, 2 fixing bug [ 988613 ] compiler.transformer and tuple unpacking
* FreeBSD's services file contains an additional echo service entry, withAndrew MacIntyre2004-07-121-1/+7
| | | | | | | | | | | a non-standard protocol and on a lower port than the tcp/udp entries, which breaks the assumption that there will only be one service by a given name on a given port when no protocol is specified. Previous versions of this code have had other problems as a result of different service definitions amongst common platforms. As this platform has an extra, unexpected, service entry, I've special cased the platform rather than re-order the list of services checked to highlight the pitfall.
* Removed debugging print statements from TimedRotatingFileHandler, and sorted ↵Vinay Sajip2004-07-121-3/+4
| | | | list returned by glob.glob() (SF #987166)
* Simplified the new get/get_nowait/put/put_nowait implementations a bit.Tim Peters2004-07-121-27/+12
|
* Bug #788520: Queue class has logic error when non-blockingTim Peters2004-07-121-85/+62
| | | | | | | | | | | | | | | | | | | | I don't agree it had a bug (see the report), so this is *not* a candidate for backporting, but the docs were confusing and the Queue implementation was old enough to vote. Rewrote put/put_nowait/get/get_nowait from scratch, to use a pair of Conditions (not_full and not_empty), sharing a common mutex. The code is 1/4 the size now, and 6.25x easier to understand. For blocking with timeout, we also get to reuse (indirectly) the tedious timeout code from threading.Condition. The Full and Empty exceptions raised by non-blocking calls are now easy (instead of nearly impossible) to explain truthfully: Full is raised if and only if the Queue truly is full when the non-blocking put call checks the queue size, and similarly for Empty versus non-blocking get. What I don't know is whether the new implementation is slower (or faster) than the old one. I don't really care. Anyone who cares a lot is encouraged to check that.
* Remove tabs introduced in last commit.Brett Cannon2004-07-111-4/+4
|
* Patch [ 972332 ] urllib2 FTPHandler bugs / John J. LeeKurt B. Kaiser2004-07-112-12/+11
| | | | | Modified Files: urllib2.py test/test_urllib2.py
* SequenceMatcher(None, [], []).get_grouped_opcodes() now returns a generatorBrett Cannon2004-07-102-0/+9
| | | | | | that behaves as if both lists has an empty string in each of them. Closes bug #979794 (and duplicate bug #980117).
* Debug output is now printed to sys.stderr .Brett Cannon2004-07-101-9/+10
| | | | Closes bug #980938.
* posixpath.realpath() now detects symlink loops and returns the path just beforeBrett Cannon2004-07-101-6/+30
| | | | | | the loop starts. Closes bug #930024. Thanks AM Kuchling.
* [Patch #981794] Add support for Firefox/FirebirdAndrew M. Kuchling2004-07-101-5/+6
|
* [Patch 988444]Andrew M. Kuchling2004-07-101-34/+31
| | | | | | | | | | | | Read multiple special headers - fixed/improved handling of extended/special headers in read-mode (adding new extended headers should be less painful now). - improved nts() function. - removed TarFile.chunks datastructure which is not (and was never) needed. - fixed TarInfo.tobuf(), fields could overflow with too large values, values are now clipped.
* [Patch #965175] Incorporate a suggestion for a better error messageAndrew M. Kuchling2004-07-101-1/+2
|
* Make ntpath compress multiple slashes between drive letter and the rest of theBrett Cannon2004-07-102-9/+24
| | | | | | path. Also clarifies UNC handling and adds appropriate tests. Applies patch #988607 to fix bug #980327. Thanks Paul Moore.
* [Patch #988602] Move the urllib2 tests into the test frameworkAndrew M. Kuchling2004-07-102-78/+129
|
* Make struct formats for specifying file size to be unsigned instead of signedBrett Cannon2004-07-101-4/+4
| | | | | | | | (ZIP file spec. says in section K, "General notes" in point 1 that unless specified otherwise values are unsigned and they are not specified as signed in the spec). Closes bug #679953. Thanks Jimmy Burgett.
* [Patch #969907] Add traceback to warning outputAndrew M. Kuchling2004-07-101-4/+5
|
* In poll(), check connections for exceptional conditionsAndrew M. Kuchling2004-07-101-0/+15
|
* Return value from .close(); move .set_file upAndrew M. Kuchling2004-07-101-2/+2
|
* [Bug #835415] AIX can return modes that are >65536, which causes an ↵Andrew M. Kuchling2004-07-101-1/+1
| | | | OverflowError. Fix from Albert Chin
* [Patch #988504] Fix HTTP error handling via a patch from John J. LeeAndrew M. Kuchling2004-07-101-10/+6
|
* [Patch #987052 from Thomas Guettler]Andrew M. Kuchling2004-07-101-6/+21
| | | | | | Don't output empty tags Escape page header Remove <p> before <table> (tidy complains)
* Improve Context construction and representation:Raymond Hettinger2004-07-102-43/+39
| | | | | | | | | | | | | * Rename "trap_enablers" to just "traps". * Simplify names of "settraps" and "setflags" to just "traps" and "flags". * Show "capitals" in the context representation * Simplify the Context constructor to match its repr form so that only the set flags and traps need to be listed. * Representation can now be run through eval(). Improve the error message when the Decimal constructor is given a float. The test suite no longer needs a duplicate reset_flags method.
* Add generic codecs.encode() and .decode() APIs that don't imposeMarc-André Lemburg2004-07-101-1/+11
| | | | any restriction on the return type (like unicode.encode() et al. do).
* Restructure testing of .pth files. Move previous functions into a class andBrett Cannon2004-07-101-37/+82
| | | | | create a testing method that can be called to make sure that the handling of the .pth file was correct.
* Change argument list for addsitedir() to not require a second argument and thusBrett Cannon2004-07-091-1/+1
| | | | | match old verion's argument list (overlooked since API of the file is undocumented).
* Add some tests for corner cases.Raymond Hettinger2004-07-091-1/+25
|
* * Update the test suite to reflect that ConversionSyntax was no longerRaymond Hettinger2004-07-092-18/+6
| | | | | | | | public. * Removed the non-signal conditions from __all__. * Removed the XXX comment which was resolved. * Use ^ instead of operator.xor * Remove the threading lock which is no longer necessary.
* Module and tests:Raymond Hettinger2004-07-092-41/+35
| | | | | | | | | | | | * Map conditions to related signals. * Make contexts unhashable. * Eliminate used "default" attribute in exception definitions. * Eliminate the _filterfunc in favor of a straight list. Docs: * Eliminate documented references to conditions that are not signals. * Eliminate parenthetical notes such as "1/0 --> Inf" which are no longer true with the new defaults.
* * fix the print testRaymond Hettinger2004-07-091-0/+14
| | | | * add more __init__ tests
* * balance the left/right search for getitem.Raymond Hettinger2004-07-091-4/+31
| | | | | * use assertions instead of tests after internal calls that can't fail. * expand test coverage
* Add another bunch of test cases for calendars with Sunday as theWalter Dörwald2004-07-081-1/+60
| | | | first day of the week.
* Add exception handling for BaseRotatingFileHandler (SF #979252)Vinay Sajip2004-07-081-3/+6
|
* FileHandler now stores the basename as an absolute path (fix for SF #982049)Vinay Sajip2004-07-081-2/+4
|
* release datesAnthony Baxter2004-07-081-2/+2
|
* Whitespace normalization.Tim Peters2004-07-0813-33/+26
|
* Exercise xrange a bitNeal Norwitz2004-07-081-0/+59
|
* Exercise some error conditionsNeal Norwitz2004-07-081-0/+10
|
* SF bug #978308, Spurious errors taking bool of dead proNeal Norwitz2004-07-081-0/+1
| | | | | | Need to return -1 on error. Needs backport.
* Tim gets his default traps.Raymond Hettinger2004-07-081-8/+10
|
* Whitespace normalization.Tim Peters2004-07-0732-166/+144
|
* [Bug #925107] Make .readline() consider self.stop. This makes read() and ↵Andrew M. Kuchling2004-07-071-13/+8
| | | | | | readline() very similar, so they're refactored into _read. Patch by Johannes Gijsbers. 2.3 bugfix candidate.
* For readable() objects, the previous value of 'flags' was ignored.Andrew M. Kuchling2004-07-071-2/+2
| | | | Rearrange code for writable() case to make the parallel logic clearer
* whitespace normalizationSkip Montanaro2004-07-061-2/+2
|
* Fix SF#983164.Thomas Heller2004-07-061-2/+26
| | | | | | | | | | | | | | | | | | Patch from Mark Hammond: bdist_wininst attempts to use the correct MSVC runtime for the current version of Python. This doesn't work correctly when --target-version is set. In that case, bdist_wininst still uses the *current* sys.version (ie, 2.4) rather than the version specified as --target-version. Thus, the msvc7 runtime based executable stub is *always* used. This patch "hard-codes" knowledge of earlier Python versions, providing the correct result when Python 2.4 is used to build Python 2.3 and earlier distributions. Remove the short variant (-v) of the --target-version command line options, it conflicts with the --verbose/-v standard distutils switch.
* testGetServBy(): Use services that should be available both on *nix andBarry Warsaw2004-07-061-1/+1
| | | | Windows (XP at least ;). Test in this order: echo, daytime, domain.