summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* Typo in docstringJeremy Hylton2002-10-111-1/+1
|
* Fix for SF bug #599836: Don't duplicate headers.Jeremy Hylton2002-10-111-2/+3
| | | | | If the request object has a header, it should override the default header provided by the OpenerDirector.
* Allow restricted code to get byteorder, getdefaultencoding(),Fred Drake2002-10-111-2/+3
| | | | getrefcount(), maxunicode, and version_info.
* Trying alphabet againJeremy Hylton2002-10-111-2/+2
|
* Sort names alphabetically.Jeremy Hylton2002-10-111-2/+2
|
* Add hexversion to list of safe sys names (SF bug 621447).Jeremy Hylton2002-10-111-1/+1
| | | | Bug fix candidate.
* Use fdopen() to create file from fd.Jeremy Hylton2002-10-111-1/+1
|
* A test for the recent overflow-in-format-crash bug.Michael W. Hudson2002-10-111-2/+14
| | | | | Only runs when sys.maxint == 2**32 - 1; different things go wrong on a 64-bit box.
* SF # 585913, Adds Galeon support to webbrowser.pyNeal Norwitz2002-10-101-1/+33
|
* Remove more DOS support.Martin v. Löwis2002-10-101-61/+0
|
* Bump version number to 2.4.2 to pick up the latest minor bug fixes.Barry Warsaw2002-10-101-1/+1
|
* New tests to verify that charsets are case insensitive, and that byBarry Warsaw2002-10-101-0/+34
| | | | default get_body_encoding() cannot be SHORTEST.
* get_content_charset(): RFC 2046 $4.1.2 says charsets are not caseBarry Warsaw2002-10-101-4/+6
| | | | sensitive. Coerce the argument to lower case.
* __init__(): RFC 2046 $4.1.2 says charsets are not case sensitive.Barry Warsaw2002-10-101-1/+3
| | | | | Coerce the argument to lower case. Also, since body encodings can't be SHORTEST, default the CHARSETS failobj's second item to BASE64.
* Patch #612602: Streamline configure methods.Martin v. Löwis2002-10-101-79/+24
|
* M CallTips.py Add support for getting calltip from subprocess,Kurt B. Kaiser2002-10-104-63/+89
| | | | | | | | | | | | refactor a bit and clean up. M PyShell.py Cosmetic changes, delete blank lines, add # on some blank lines. M rpc.py Add more debugging capability M run.py Add support for getting calltip from subprocess Move import statements
* SF #614596, fix for urllib2.AbstractBasicAuthHandler, John Williams (johnw42)Neal Norwitz2002-10-091-1/+1
| | | | Make the regex case insensitive for some web sites which use Realm.
* MacOSX linker doesn't understand -R flag at all, no matter how you feed itSkip Montanaro2002-10-091-1/+4
| | | | | the flag. Punt and return a -L flag instead (returning "" gums up the command to be forked).
* Add special consideration for rlcompleter. As a side effect ofGuido van Rossum2002-10-091-1/+12
| | | | | | | | | | | | | | | | initializing GNU readline, setlocale(LC_CTYPE, "") is called, which changes the <ctype.h> macros to use the "default" locale (which isn't the *initial* locale -- the initial locale is the "C" locale in which only ASCII characters are printable). When the default locale is e.g. Latin-1, the repr() of string objects can include 8-bit characters with the high bit set; I believe this is due to the recent PRINT_MULTIBYTE_STRING changes to stringobject.c. This in turn screws up test_pyexpat and test_rotor, which depend on the repr() of 8-bit strings with high bit characters. The solution (for now) is to force the LC_CTYPE locale to "C" after importing rlcompleter. This is the locale required by the test suite anyway.
* Remove more DOS support.Martin v. Löwis2002-10-092-364/+6
|
* Don't try to access sys.getwindowsversion unless it exists (ntpath isTim Peters2002-10-091-1/+2
| | | | | | imported on systems other than Windows, and in particular is imported by test___all__; the compile farm reported that all Linux tests failed due to this; isn't anyone in PythonDevLand running CVS on Linux?!).
* Logic for determining whether skipping test_pep277 is expected: whetherTim Peters2002-10-091-1/+8
| | | | | | ths "should be" skipped depends on os.path.supports_unicode_filenames, not really on the platform. Fiddled the expected-skip constructor appropriately.
* TheTim Peters2002-10-081-1/+1
| | | | | | | | | | | | | | | | list(xrange(sys.maxint / 4)) test. Changed 4 to 2. The belief is that this test intended to trigger a bit of code in listobject.c's NRESIZE macro that's looking for arithmetic overflow. As written, it doesn't achieve that, though, and leaves it up to the platform realloc() as to whether it wants to allocate 2 gigabytes. Some platforms say "sure!", although they don't appear to mean it, and disaster ensues. Changing 4 to 2 (just barely) manages to trigger the arithmetic overflow test instead, leaving the platform realloc() out of it. I'll backport this to the 2.2 branch next.
* Add os.path.supports_unicode_filenames for all platforms,Mark Hammond2002-10-087-11/+25
| | | | | | sys.getwindowsversion() on Windows (new enahanced Tim-proof <wink> version), and fix test_pep277.py in a few minor ways. Including doc and NEWS entries.
* openfile(): Go back to opening the files in text mode. This undoesBarry Warsaw2002-10-072-2/+2
| | | | | | the change in revision 1.11 (test_email.py) in response to SF bug #609988. We now think that was the wrong fix and that WinZip was the real culprit there.
* _parsebody(): Use get_content_type() instead of the deprecatedBarry Warsaw2002-10-071-5/+6
| | | | | | | get_type(). Also, one of the regular expressions is constant so might as well make it a module global. And, when splitting up digests, handle lineseps that are longer than 1 character in length (e.g. \r\n).
* Use escaped Unicode literals, according to PEP 8.Martin v. Löwis2002-10-071-12/+11
|
* Bump the version to 2.4.1 (not 2.5 as previously mentioned) to sync itBarry Warsaw2002-10-071-1/+1
| | | | with the standalone mimelib package.
* Patch #448038: Add move(). Report errors from copytree as in shutil.Error.Martin v. Löwis2002-10-071-2/+30
|
* Patch #619493: Prefer rpmbuild over rpm if available. Backported to 2.2.Martin v. Löwis2002-10-071-0/+3
|
* Add test_pep277 to the expected skips on Linux. (This test seems toGuido van Rossum2002-10-061-0/+1
| | | | | be skipped everywhere except on Windows NT and descendants, but I'm only going to add it to the skip list for the platform I can test.)