summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Major cleanup. Renamed static methods to avoid Py prefix. Other miscGuido van Rossum2002-06-071-296/+290
| | | | cleanup as well, e.g. renamed NTinit to os_init.
* Repair a comment.Guido van Rossum2002-06-071-1/+1
|
* Whitespace normalization, folding long lines, uniform commentGuido van Rossum2002-06-071-224/+229
| | | | delimiters. Also repaired some docstrings and comments.
* Correct several blunders in the timeout code, mostly my own fault (forGuido van Rossum2002-06-071-14/+12
| | | | | | | | | | | | | | | | | | | | | not testing it -- apparently test_timeout.py doesn't test anything useful): In internal_select(): - The tv_usec part of the timeout for select() was calculated wrong. - The first argument to select() was one too low. - The sense of the direction argument to internal_select() was inverted. In PySocketSock_settimeout(): - The calls to internal_setblocking() were swapped. Also, repaired some comments and fixed the test for the return value of internal_select() in sendall -- this was in the original patch.
* Remove casts to PyObject * when declaration is for PyObject *Jeremy Hylton2002-06-061-3/+3
|
* Add version info, and fix another typo and wording spotted by /F. I think ↵Neal Norwitz2002-06-061-2/+4
| | | | this is what he meant. :-)
* Fix typo spotted by Fredrik Lundh.Fred Drake2002-06-061-1/+1
|
* Fix some markup errors and adjust wording slightly.Fred Drake2002-06-061-15/+15
|
* SF patch 555085 (timeout socket implementation) by Michael Gilfix.Guido van Rossum2002-06-061-0/+23
| | | | | | | | | | | | | I've made considerable changes to Michael's code, specifically to use the select() system call directly and to store the timeout as a C double instead of a Python object; internally, -1.0 (or anything negative) represents the None from the API. I'm not 100% sure that all corner cases are covered correctly, so please keep an eye on this. Next I'm going to try it Windows before Tim complains. No way is this a bugfix candidate. :-)
* Michael Gilfix of SF patch 555085 fame.Guido van Rossum2002-06-061-0/+1
|
* SF patch 555085 (timeout socket implementation) by Michael Gilfix.Guido van Rossum2002-06-065-123/+690
| | | | | | | | | | | | | I've made considerable changes to Michael's code, specifically to use the select() system call directly and to store the timeout as a C double instead of a Python object; internally, -1.0 (or anything negative) represents the None from the API. I'm not 100% sure that all corner cases are covered correctly, so please keep an eye on this. Next I'm going to try it Windows before Tim complains. No way is this a bugfix candidate. :-)
* The insint() function is not used. Nuke it.Guido van Rossum2002-06-061-15/+0
|
* The tp_new implementation should initialize the errorhandler field,Guido van Rossum2002-06-061-1/+3
| | | | | | | | otherwise this code could segfault: from socket import socket s = socket.__new__(socket) s.recv(100)
* Remove uses of string module and stat.ST_MODENeal Norwitz2002-06-063-11/+7
|
* Remove another reference to stat.ST_MODENeal Norwitz2002-06-061-1/+1
|
* Use isinstance for the type check, use booleans.Martin v. Löwis2002-06-061-4/+4
|
* Fix from SF patch 565085: copy._reduction doesn't __setstate__.Guido van Rossum2002-06-061-0/+29
| | | | | | Straightforward fix. Will backport to 2.2. If there's ever a new 2.1 release, this could be backported there too (since it's an issue with anything that's got both a __reduce__ and a __setstate__).
* Fix from SF patch 565085: copy._reduction doesn't __setstate__.Guido van Rossum2002-06-061-1/+4
| | | | | | Straightforward fix. Will backport to 2.2. If there's ever a new 2.1 release, this could be backported there too (since it's an issue with anything that's got both a __reduce__ and a __setstate__).
* Apply diff.txt from SF patch http://www.python.org/sf/561478Walter Dörwald2002-06-061-1/+2
| | | | | | This uses cgi.parse_header() in Checker.checkforhtml(), so that webchecker recognises the mime type text/html even if options are specified.
* Close SF bug 563740. complex() now finds __complex__() in new style classes.Raymond Hettinger2002-06-063-28/+36
| | | | | Made conversion failure error messages consistent between types. Added related unittests.
* Pyrangeiter_Type && range_iter should be staticNeal Norwitz2002-06-061-5/+5
|
* Change warning to debug level; it's a very minor issue.Jeremy Hylton2002-06-061-2/+2
| | | | | The specific warning is that clean didn't find a directory that should be removed if it exists.
* Stop testing for sigprocmask. This is a stop gap measure until I workMichael W. Hudson2002-06-063-7/+3
| | | | | out how to just activate my code on platforms where I know it works (currently only linux/x86).
* Patch 473512: add GNU style scanning as gnu_getopt.Martin v. Löwis2002-06-065-2/+103
|
* Patch #551911: Escape . properly.Martin v. Löwis2002-06-061-1/+1
|
* Replace obsolete stat module constants withWalter Dörwald2002-06-062-5/+5
| | | | | | equivalent attributes in a few more spots. This closes SF patch http://www.python.org/sf/562373
* CRLF -> LFGuido van Rossum2002-06-060-0/+0
|
* Skip Montanaro's patch, SF 559833, exposing xrange type in builtins.Raymond Hettinger2002-06-054-46/+91
| | | | | Also, added more regression tests to cover the new type and test its conformity with range().
* open method changed to use arguments and set instance host/port values ↵Piers Lauder2002-06-051-8/+12
| | | | (instead of __init__)
* SF 564601 adding rangeiterobject to make xrange() iterate like range().Raymond Hettinger2002-06-051-46/+91
|
* SF bug 558179.Guido van Rossum2002-06-053-9/+2
| | | | | Change default for get() back to None. Will backport to 2.2.1.
* fixed refcount leak in CreateNewWindow() and CreateWindowFromResource().Just van Rossum2002-06-052-2/+9
|
* Better isinstance error message.Thomas Heller2002-06-051-1/+2
| | | | | | Closes SF patch # 560250. Bugfix candidate IMO.
* Move warning about directory not on sys.path to debug level.Jeremy Hylton2002-06-041-8/+10
| | | | Fix a bunch of multiline string constants that used +.
* Test changes before checking them in.Jeremy Hylton2002-06-041-1/+1
|
* Track extra arg to option_table to all uses of itJeremy Hylton2002-06-041-2/+2
|
* Replace bogus bare variables with attribute access.Jeremy Hylton2002-06-041-3/+4
|
* Define DEBUG as early as possible to avoid import problems.Jeremy Hylton2002-06-041-5/+5
|
* Add missing import of log.Jeremy Hylton2002-06-041-0/+1
|
* Use module-level import of DEBUG instead of many function-level imports.Jeremy Hylton2002-06-041-4/+1
|
* Remove unused importsJeremy Hylton2002-06-042-2/+0
|
* Make None return explicitJeremy Hylton2002-06-041-1/+1
|
* import base64 at the top to avoid two different imports at other timesJeremy Hylton2002-06-041-2/+2
|
* ensure_filename() only takes one argument.Jeremy Hylton2002-06-041-6/+4
| | | | | Call ensure_string() with one arg too, since the second value passed was the default.
* Reindent lines to improve readabilityJeremy Hylton2002-06-041-3/+3
|
* Remove (commented out) options that have moved into the distribution.Jeremy Hylton2002-06-041-13/+0
|
* get_script() implicitly returned None and also had explicit returns.Jeremy Hylton2002-06-041-26/+25
| | | | | Make all returns explicit and rearrange logic to avoid extra indentation.
* global _option_order is not usedJeremy Hylton2002-06-041-6/+0
|
* Fix bug in recent change to logging code.Jeremy Hylton2002-06-041-1/+1
| | | | | mode is not computed in dry_run mode, so it can't be included in the log message.
* Fix unused local variables caught by pychecker.Jeremy Hylton2002-06-046-22/+8
| | | | | Fixes a bug for Solaris pkgtool (bdist_pkgtool) that would have prevented it from building subpackages.