summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* Patch #443899: Check modes on files before performing operations.Martin v. Löwis2002-03-111-1/+9
| | | | Use IOErrors where file objects use them.
* file_truncate(): provide full "large file" support on Windows, byTim Peters2002-03-111-15/+24
| | | | | | | | | | | | | | | | | | | | dropping MS's inadequate _chsize() function. This was inspired by SF patch 498109 ("fileobject truncate support for win32"), which I rejected. libstdtypes.tex: Someone who knows should update the availability blurb. For example, if it's available on Linux, it would be good to say so. test_largefile: Uncommented the file.truncate() tests, and reworked to do more. The old comment about "permission errors" in the truncation tests under Windows was almost certainly due to that the file wasn't open for *write* access at this point, so of course MS wouldn't let you truncate it. I'd be appalled if a Unixish system did. CAUTION: Someone should run this test on Linux (etc) too. The truncation part was commented out before. Note that test_largefile isn't run by default.
* Bugfix candidate.Guido van Rossum2002-03-111-0/+3
| | | | | | | Adapter from SF patch 528038; fixes SF bug 527816. The wrapper for __nonzero__ should be wrap_inquiry rather than wrap_unaryfunc, since the slot returns an int, not a PyObject *.
* Access the exception argument to see whether it starts with '500'.Martin v. Löwis2002-03-101-2/+2
| | | | Fixes #527855.
* SF patch 499062: Minor typo in test_generators.py.Tim Peters2002-03-101-1/+1
| | | | | | There's no actual patch there. It's an objection that Guido's example doesn't actually generator "leaves", so change the comment that says it does.
* Fix SF bug 525520.Jeremy Hylton2002-03-091-20/+34
| | | | | Don't automatically add a Host: header if the headers passed to request() already has a Host key.
* Fix pyclbr test of httplib without really understanding pyclbr.Jeremy Hylton2002-03-081-1/+2
| | | | | It seems that the new class HTTP11 in httplib.test() isn't discoverable by pyclbr, which causes this test to fail.
* SF bug report #405939: wrong Host header with proxyJeremy Hylton2002-03-081-3/+21
| | | | | | | | | | | | | | | In August, Greg said this looked good, so I'm going ahead with it. The fix is different from the one in the bug report. Instead of using a regular expression to extract the host from the url, I use urlparse.urlsplit. Martin commented that the patch doesn't address URLs that have basic authentication username and password in the header. I don't see any code anywhere in httplib that supports this feature, so I'm not going to address it for this fix. Bug fix candidate.
* [Bug #491820] Define two abstract methods to shut up Pychecker, and forAndrew M. Kuchling2002-03-081-0/+6
| | | | | documentation purposes. These implementations are the same as the ones suggested by Skip in the bug report.
* [Bug #517554] When a signal happens during the select call inAndrew M. Kuchling2002-03-081-0/+1
| | | | | | | | | asyncore.poll, the select fails with EINTR, which the code catches. However, the code fails to clear the r/w/e arrays (like poll3 does), which means it acts as if every descriptor had received all possible events. Bug report and patch by Cesar Eduardo Barros
* As part of fixing bug #523301, add a simple test of ConfigParser.write()Andrew M. Kuchling2002-03-082-0/+30
|
* [Bug #523301] ConfigParser.write() produces broken output for values thatAndrew M. Kuchling2002-03-081-2/+2
| | | | | were originally rfc822-like line continuations. Modified version of a patch from Matthias Ralfs.
* fixed missing IMAP4_SSL_PORTPiers Lauder2002-03-081-1/+2
|
* SF bug 515943: searching for data with \0 in mmap.Tim Peters2002-03-081-0/+25
| | | | | | | | | mmap_find_method(): this obtained the string to find via s#, but it ignored its length, acting as if it were \0-terminated instead. Someone please run on Linux too (the extended test_mmap works on Windows). Bugfix candidate.
* add Content-Type header to error responsesSkip Montanaro2002-03-081-0/+1
| | | | this closes patch 502080
* add SSL class submitted by Tino LangePiers Lauder2002-03-081-1/+74
|
* add repr_str as alias for repr_string in both HTMLRepr and TextRepr classesSkip Montanaro2002-03-071-0/+4
| | | | | - reflects the change in type("").__name__ between 2.1 and 2.2. The __name__ field is used to find a method to call for particular types.
* Test forMichael W. Hudson2002-03-061-0/+12
| | | | | | [ 526039 ] devious code can crash structseqs Bugfix candidate.
* Special support for pickling os.stat and os.stat_vfs results portablyMichael W. Hudson2002-03-062-0/+31
| | | | | | | | (the types come from different modules on different platforms). Added tests for pickling these types. May be a bugfix candidate.
* Set default value for readlines.sizehint to None. Change needed for 2.2.1Martin v. Löwis2002-03-051-1/+1
| | | | as well.
* A fix & test forMichael W. Hudson2002-03-051-0/+7
| | | | | | | | [ 496873 ] structseqs unpicklable by adding a __reduce__ method to structseqs. Will also commit this to the 2.2.1 branch momentarily.
* remove debug cruftSteven M. Gava2002-03-051-6/+0
|
* further work on new config systemSteven M. Gava2002-03-052-9/+23
|
* Removed two unused imports. Closes patch #525225.Barry Warsaw2002-03-031-4/+0
| | | | 2.2.1 candidate (but not terribly important).
* SF #506611, fix sys.setprofile(), sys.settrace() core dumpsNeal Norwitz2002-03-032-0/+10
| | | | when no arguments are passed
* OS/2 more program behaves like Win32 moreAndrew MacIntyre2002-03-031-1/+1
| | | | (see patch #514490, by Stefan Schwarzer)
* First work on making config changes dynamic,Steven M. Gava2002-03-025-36/+56
| | | | dynamic theme changes
* _PyLong_Copy(): was creating a copy of the absolute value, but shouldTim Peters2002-03-021-0/+1
| | | | | | copy the sign too. Added a test to test_descr to ensure that it does. Bugfix candidate.
* Added PortableUnixMailbox to the __all__ variable, and in the __main__Barry Warsaw2002-03-011-2/+4
| | | | | | | section use this class instead of UnixMailbox as per the comments in the latter's class. Bug fix candidate for 2.2.1.
* SF patch 514641 (Naofumi Honda) - Negative ob_size of LongObjectsGuido van Rossum2002-03-011-0/+4
| | | | | | | | | | Due to the bizarre definition of _PyLong_Copy(), creating an instance of a subclass of long with a negative value could cause core dumps later on. Unfortunately it looks like the behavior of _PyLong_Copy() is quite intentional, so the fix is more work than feels comfortable. This fix is almost, but not quite, the code that Naofumi Honda added; in addition, I added a test case.
* Patch 520694: arraymodule.c improvements:Martin v. Löwis2002-03-011-4/+141
| | | | | | - make array.array a type - add Py_UNICODE arrays - support +=, *=
* SF patch 518765 (Derek Harland): Bug in copy.py when used throughGuido van Rossum2002-02-281-1/+4
| | | | | | | | | | rexec. When using a restricted environment, imports of copy will fail with an AttributeError when trying to access types.CodeType. Bugfix candidate (all the way back to 1.5.3, but at least 2.1.3 and 2.2.1).
* Patch #522279: transformer.py nodes shadows global.Martin v. Löwis2002-02-281-3/+3
|
* Correct various errors:Martin v. Löwis2002-02-282-6/+157
| | | | | | | - Use substring search, not re search for user-agent and paths. - Consider * entry last. Unquote, then requote URLs. - Treat empty Disallow as "allow everything". Add test cases. Fixes #523041
* Allow shebang's which use versioned Python binaries. FixesMarc-André Lemburg2002-02-281-1/+1
| | | | bug #521526.
* SF patch #523169, by Samuele Pedroni.Guido van Rossum2002-02-263-1/+14
| | | | | | There were never tests for the fact that list() always returns a *new* list object, even when the argument is a list, while tuple() may return a reference to the argument when it is a tuple. Now there are.
* bugfix for the problem where EditorWindow instancesSteven M. Gava2002-02-261-2/+5
| | | | | would appear to freeze for a few seconds on closing in some cases when running under X
* canonic(): Fix by Edward K Ream to make breakpoints work better onGuido van Rossum2002-02-251-0/+1
| | | | | | | Windows: apply normcase() as well as abspath(). (Note: this isn't needed to make IDLE work, but it's a good idea anyway.) Bugfix candidate -- both 2.2.1 and 2.1.3.
* Fix by Edward K Ream to make breakpoints work on Windows: insert aGuido van Rossum2002-02-251-0/+1
| | | | missing call to self.canonic().
* Set TCL_LIBRARY before import _tkinter. Suggested by Kirill Simonov.Martin v. Löwis2002-02-241-10/+31
| | | | Fixes #418173 and #219960. 2.2.1 candidate.
* Accept Unicode strings as SMTP TO addresses. Fixes #521270.Martin v. Löwis2002-02-241-1/+1
| | | | 2.2.1 candidate.
* OS/2 EMX port Library and regression test changes:Andrew MacIntyre2002-02-246-15/+446
| | | | | | | | | | | Lib/ os.py os2emxpath.py // added - OS/2 EMX specific path manipulation routines popen2.py site.py Lib/test/ test_fcntl.py test_longexp.py
* tracking changes to python idle:Steven M. Gava2002-02-231-1/+1
| | | | python Patch #520483: Make IDLE OutputWindow handle Unicode.
* Patch #521714: fix pychecker warnings in ast.py.Martin v. Löwis2002-02-231-124/+124
|
* Patch #521670: Remove unused sys import.Martin v. Löwis2002-02-231-2/+1
|
* Create and populate OS/2 EMX port platform specific library directory:Andrew MacIntyre2002-02-225-0/+511
| | | | | | | | | Lib/plat-os2emx/ IN.py SOCKET.py grp.py pwd.py // pwd module that can process real passwd files regen
* moved command logging routines into IMAP4 class: thread safe/fasterPiers Lauder2002-02-221-56/+65
|
* First version which runs an install-script (specified by theThomas Heller2002-02-201-314/+354
| | | | | | | | | | | | | | | | | | | --install-script ... command line option to bdist_wininst) at the end of the installation and at the start of deinstallation. Output (stdout, stderr) of the script (if any) is displayed in the last screen at installation, or in a simple message box at deinstallation. sys.argv[1] for the script will contain '-install' at installation time or '-remove' at deinstallation time. The installation script runs in an environment (embedded by the bdist_wininst runtime) where an additional function is available as builtin: create_shortcut(path, description, filename, [arguments[, workdir[, iconpath, iconindex]]]) Recreated this file after source changes.
* Somebody made list.__dict__ grow a '__doc__' key, but apparently didn'tTim Peters2002-02-191-0/+1
| | | | | run the test suite afterwards. Either that, or whether '__doc__' shows up is platform-dependent!
* SF #515023. Make _DummyThread.join() signature match base class (Thread)Neal Norwitz2002-02-191-1/+1
|