summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* Upgrade None assignment SyntaxWarning to a SyntaxError.Raymond Hettinger2004-07-171-0/+15
|
* The new distutils features justify a new version number, imo.Thomas Heller2004-07-161-1/+1
| | | | | If someone has other ideas for the numbering scheme, please change to something else (1.1.0 ?).
* Fix for #779167: use InternetConfig proxy settings on MacOSX (in additionJack Jansen2004-07-161-2/+5
| | | | to unix-style).
* [Patch #982681] Apply this patch correctly; makes set_reuse_addr() work on ↵Andrew M. Kuchling2004-07-151-3/+9
| | | | Windows
* Allow overriding of bgen pathnames in an optional module bgenlocationcustomize.Jack Jansen2004-07-151-0/+8
| | | | Editing of bgenlocations.py isn't easy if your Python was supplied by Apple.
* Typo fixesAndrew M. Kuchling2004-07-151-4/+4
|
* Checking sys.platform for substring 'win' was breaking IDLE docs on MacKurt B. Kaiser2004-07-154-23/+39
| | | | | | | | | (darwin). Also, Mac Safari browser requires full file:// URIs. SF 900580 M EditorWindow.py M NEWS.txt M configHelpSourceEdit.py M idlever.py
* Use threading.local() instead of threading.currentThread().Raymond Hettinger2004-07-141-21/+57
|
* Factor out two unnecessary global variables.Raymond Hettinger2004-07-141-11/+4
|
* Implemented thread-local data as proposed on python-dev:Jim Fulton2004-07-144-1/+292
| | | | http://mail.python.org/pipermail/python-dev/2004-June/045785.html
* Ported some features from zope:Jim Fulton2004-07-141-101/+214
| | | | | - Fixed the display of tests in verbose output - Allow setUp and tearDown functions to be provided for DocTestSuites.
* * Hide a loop induction variable that was inadvertantly being picked upRaymond Hettinger2004-07-142-39/+2
| | | | | | | by the locals() call in the context constructor. * Remove unnecessary properties for int, exp, and sign which duplicated information returned by as_tuple().
* * Rename "Signals" to "_signals" making it non-public.Raymond Hettinger2004-07-142-8/+13
| | | | | * Context.create_decimal can take a zero default just like Decimal(). * Fix typo in comment.
* Recompiled after source file changes.Thomas Heller2004-07-142-0/+0
|
* - Bug #981530: Fix UnboundLocalError in shutil.rmtree(). This affectsGuido van Rossum2004-07-141-0/+1
| | | | | | | | the documented behavior: the function passed to the onerror() handler can now also be os.listdir. [I could've sworn I checked this in, but apparently I didn't, or it got lost???]
* - Bug #981530: Fix UnboundLocalError in shutil.rmtree(). This affectsGuido van Rossum2004-07-141-0/+1
| | | | | | | | the documented behavior: the function passed to the onerror() handler can now also be os.listdir. [I could've sworn I checked this in, but apparently I didn't, or it got lost???]
* It helps when doing checks if something is in a tuple of strings that if youBrett Cannon2004-07-141-1/+1
| | | | put everything in the tuple in caps to use str.upper() instead of str.lower().
* Fixes a bug in testing code handling .pth files that did not restore the ↵Brett Cannon2004-07-131-29/+26
| | | | | | | | | | | | | | | | original module that is removed for testing "import" lines. Originally deleted the entry from sys.modules and then just let other code that needed it to import it again. Problem with this solution is that it lead to code that had already imported the module in question to have their own reference to a new copy of the module in question that new code couldn't reach. This lead to a failure in test_strptime since it monkey-patched the 'time' module it had a reference to while _strptime had its own reference to another copy of 'time' from being imported by test___all__ that it was using for a calculation. Also moved the testing code out of the PthFile class and into the actual test class. This was to stop using 'assert' which is useless with a -O execution.
* 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.