summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* Implement a safer and more predictable interpolation approach.Fred Drake2002-10-252-1/+64
| | | | Closes SF bug #511737.
* Add tests for both raw and non-raw versions of the items() methods.Fred Drake2002-10-251-0/+26
|
* According to the docs, __name__ is not exposed via the API exceptFred Drake2002-10-251-2/+8
| | | | | | | | indirectly via %(__name__)s. Not sure why, but maintain the documented behavior for the new items() method. Be a little more efficient about how we compute the list of options in the ConfigParser.items() method.
* Remove useless output file.Fred Drake2002-10-251-9/+0
|
* Convert to PyUnit.Fred Drake2002-10-251-293/+263
|
* Added (very) minimal tests of the RawConfigParser class.Fred Drake2002-10-251-16/+35
| | | | | Moved the write() test to near the end of the file since it screws up font-lock. ;-(
* Re-factor: Use a RawConfigParser base class and make ConfigParser aFred Drake2002-10-251-103/+133
| | | | | derived class that adds the ugly string interpolation code. In the process, changed all "__" methods and instance variables to "_".
* Fix for bug #626172: crash using unicode latin1 single charMarc-André Lemburg2002-10-231-0/+6
| | | | Python 2.2.3 candidate.
* Implement Restoring Breakpoints in Subprocess DebuggerKurt B. Kaiser2002-10-233-74/+110
| | | | | | | | | | | | | | | | | | | | M Debugger.py M EditorWindow.py M PyShell.py 0. Polish PyShell.linecache_checkcache() 1. Move break clearing code to PyShell.PyShellEditorWindow from EditorWindow. 2. Add PyShellEditorWindow.breakpoints attribute to __init__, a list of line numbers which are breakpoints for that edit window. 3. Remove the code in Debugger which removes all module breakpoints when debugger is closed. Want to be able to reload into debugger when restarted. 4. Moved the code which sets EditorWindow.text breakpoints from Debugger to PyShell.PyShellEditorWindow and refactored. 5. Implement reloading subprocess debugger with breakpoints from all open PyShellEditorWindows when debugger is opened or subprocess restarted. 6. Eliminate the break_set attribute, use the breakpoint list instead.
* Add comment about inability to handle Unicode strings (hopefully aGreg Ward2002-10-221-0/+3
| | | | temporary condition).
* add support for basic authentication, based on patch #624180Fredrik Lundh2002-10-221-12/+44
| | | | by Phillip J. Eby
* Patches #626105:Raymond Hettinger2002-10-221-13/+6
| | | | | | | | | Replaces the _center function in the calendar module with the center method for strings. For situations with uneven padding, the behavior is slightly different in that the center method puts the extra space on the right instead of the left.
* test_body_encoding(): a new test for Charset.body_encode(), especiallyBarry Warsaw2002-10-211-0/+14
| | | | one that tests the obscure bug reported in SF # 625509.
* test_body_encoding(): a new testBarry Warsaw2002-10-211-0/+23
|
* body_encode(): Fixed typo reported by Chris Lawrence, closing SF bugBarry Warsaw2002-10-211-1/+1
| | | | | | #625509. This isn't a huge problem because at the moment there are no built-in charsets for which header_encoding is QP but body_encoding is not.
* Explicitly use floor divisionRaymond Hettinger2002-10-211-1/+1
|
* Eliminate unused instance variableRaymond Hettinger2002-10-211-5/+5
|
* point people to the Python bug tracker, rather than to a mailFredrik Lundh2002-10-192-20/+7
| | | | account I hardly ever use...
* Fix SF # 624982, Potential AV in slot_sq_item, by Greg ChapmanNeal Norwitz2002-10-181-0/+12
| | | | Don't crash when getting value of a property raises an exception
* Update to Unicode 3.2 database.Martin v. Löwis2002-10-182-3/+3
|
* Patch #624936: Implement __contains__.Martin v. Löwis2002-10-181-1/+4
|
* Add new encoding for Ukrainian CyrillicNeal Norwitz2002-10-171-0/+54
|
* Continue to work even though the test can be named test.test_regexFred Drake2002-10-171-1/+1
| | | | these days.
* Don't call warnings.resetwarnings(); that does bad things that causeFred Drake2002-10-171-5/+4
| | | | | | other tests to generate warning when they didn't before. In particular, this cancels not only filters set by -W, but also from test.regrtest.
* Remove spurious cruft from the output.Fred Drake2002-10-171-1/+1
|
* Must catch TypeError from int(length).Guido van Rossum2002-10-171-1/+1
|
* Added missing entries to __all__.Fred Drake2002-10-161-1/+2
|
* Make sure we test urlsplit() / urlunsplit() directly, rather thanFred Drake2002-10-161-12/+40
| | | | | | guessing that urlparse() / urlunparse() use them. Add tests of urldefrag().
* Recreated after source changes.Thomas Heller2002-10-161-319/+319
|
* Recreated after source changes.Thomas Heller2002-10-151-315/+315
|
* Patch #572628: Optional timeouts for put and get.Martin v. Löwis2002-10-152-19/+106
|
* Revert the previous checkin - it didn't work anyway.Thomas Heller2002-10-151-4/+3
|
* For some reason (probably cut and paste), __ipow__ for new-styleGuido van Rossum2002-10-151-0/+11
| | | | | | | | | | | | | | classes was called with three arguments. This makes no sense, there's no way to pass in the "modulo" 3rd argument as for __pow__, and classic classes don't do this. [SF bug 620179] I don't want to backport this to 2.2.2, because it could break existing code that has developed a work-around. Code in 2.2.2 that wants to use __ipow__ and wants to be forward compatible with 2.3 should be written like this: def __ipow__(self, exponent, modulo=None): ...
* Allow Unicode strings as message and module name.Martin v. Löwis2002-10-141-2/+2
|
* Convert empty string literal to string. Speed up creation of idmap.Martin v. Löwis2002-10-141-3/+4
|
* Fix for 1.33: urlsplit() should only add '//' if scheme != ''.Guido van Rossum2002-10-142-2/+7
| | | | Will add test and backport.
* append(): Fixing the test for convertability after consultation withBarry Warsaw2002-10-141-14/+28
| | | | | | | Ben. If s is a byte string, make sure it can be converted to unicode with the input codec, and from unicode with the output codec, or raise a UnicodeError exception early. Skip this test (and the unicode->byte string conversion) when the charset is our faux 8bit raw charset.
* Two new tests for splitting (or not splitting) 8-bit header data.Barry Warsaw2002-10-141-0/+21
|
* Bump the __version__Barry Warsaw2002-10-141-1/+1
|
* __init__(): Fix an invariant, that the charset item in a chunk tupleBarry Warsaw2002-10-141-2/+11
| | | | | | | | | | must be a Charset instance, not a string. The bug here was that self._charset wasn't being converted to a Charset instance so later .append() calls which used the default charset would break. _split(): If the charset of the chunk is '8bit', return the chunk unchanged. We can't safely split it, so this is the avenue of least harm.
* _split_header(): If we have a header which is a byte string containingBarry Warsaw2002-10-141-1/+17
| | | | | | | | | 8-bit data, we cannot split it safely, so return the original string unchanged. _is8bitstring(): Helper function which returns True when we have a byte string that contains non-ascii characters (i.e. mysterious 8-bit data).
* CHARSETS: Add faux '8bit' encoding for representing raw 8-bit data forBarry Warsaw2002-10-141-0/+2
| | | | which we know nothing else.
* Add finditer to __all__ (when defining it at all).Guido van Rossum2002-10-141-0/+1
| | | | SF bug 585882. Will forward-port.
* Fix copyright date: the core of this code actually dates back to 1999Greg Ward2002-10-131-2/+2
| | | | (rev. 1.4 of distutils/fancy_getopt.py).
* Patch #611760: read archives with comments.Martin v. Löwis2002-10-131-23/+48
|
* Patch #621891: Add askopenfile{name}s.Martin v. Löwis2002-10-131-1/+33
|
* Patch #621205: Tkinter updates for tk8.4.Martin v. Löwis2002-10-131-26/+548
|
* _encode_chunks(), encode(): Don't modify self._chunks. As Ben says:Barry Warsaw2002-10-131-23/+22
| | | | | | | | | Also, it fixes a really egregious error in Header.encode() (really in Header._encode_chunks()) that could cause a header to grow and grow each time encode() was called if output_codec was different from input_codec. Also, fix a typo.
* Update the urls and other information about the add-on Japanese,Barry Warsaw2002-10-131-13/+8
| | | | Korean, and Chinese codecs.
* SF # 539360, webbrowser.py and konqueror, by Andy McKayNeal Norwitz2002-10-111-2/+2
| | | | | | | Fix Konqueror so it can start when calling open(). The assert needed to be on the raw URL, not openURL 'url...' Will backport.