Commit Graph

27863 Commits

Author SHA1 Message Date
Walter Dörwald 77cdeaff55 Modernize Lib/posixpath.py: Use startswith(), endswith(), rstrip(),
struct_passwd attributes and +=.

From SF patch #755245.
2003-06-17 13:13:40 +00:00
Skip Montanaro 364ca40c2a SF Patch 569574 - enhancements to cgitb for plain text display 2003-06-17 12:58:31 +00:00
Raymond Hettinger d05abdec7b SF #754014: list.index() should accept optional start, end arguments
Also, modified UserList.index() to match and expanded the related tests.
2003-06-17 05:05:49 +00:00
Raymond Hettinger c8106e1f1d test_posixpath.py now uses unittest. The output file is no longer needed. 2003-06-17 04:19:59 +00:00
Neal Norwitz 51dead79b5 Convert some repetitive code into a loop 2003-06-17 02:51:28 +00:00
Neal Norwitz 938b7a0f63 Fix some markup nits 2003-06-17 02:37:06 +00:00
Tim Peters 8ab2ec432a SF bug 751956: graminit.[ch] don't build on windows
A change from Duncan Booth, to deal with changes in the way pgen gets
built.  Note that graminit.[ch] aren't normally built on Windows (they're
obtained from CVS).
2003-06-17 00:05:53 +00:00
Neal Norwitz 98a379eda1 Add test for bug #751998. 2003-06-16 22:51:22 +00:00
Brett Cannon b47243ae45 Complete rewrite of tests by Walter Dorwald as unittest tests. 2003-06-16 21:54:50 +00:00
Neil Schemenauer 00b0966f20 Don't use the module object setattr when importing submodules. Instead,
operate on the module dictionary directly.  This prevents spurious
depreciation warnings from being raised if a submodule name shadows
a builtin name.
2003-06-16 21:03:07 +00:00
Jeremy Hylton e0c3112ae7 Add item about new threading module functions. 2003-06-16 20:38:15 +00:00
Jeremy Hylton f00368f9ed Remove many blanket try/except clauses.
SF bug [ 751276 ] cPickle doesn't raise error, pickle does (recursiondepth)

Most of the calls to PyErr_Clear() were intended to catch & clear an
attribute error and try something different.  Guard all those cases
with a PyErr_ExceptionMatches() and fail if some other error
occurred.  The other error is likely a bug in the user code.

This is basically the C equivalent of changing "except:" to
"except AttributeError:"
2003-06-16 20:19:49 +00:00
Kurt B. Kaiser a1ad5f658c Correct function name. 2003-06-16 18:51:28 +00:00
Kurt B. Kaiser 7345375771 Add ':' after IDLE version, fix spacing on a couple of lines I missed 2003-06-16 18:46:42 +00:00
Jack Jansen 7006fa14d8 Allow passing a build directory on the command line. Also, if the
build directory is found to exist we don't clean it up. We also
use configure -C. All this lets us keep build directories, which
graeatly speeds up the process of debugging installers.
2003-06-16 15:12:16 +00:00
Jack Jansen e5370655dc Only fix up pathnames in installed scripts when needed, i.e. when not installing
to /. Pathnames are correct for installing to / since the DESTDIR patch.
2003-06-16 15:10:47 +00:00
Jack Jansen a93b3cc9c2 Added a note about FSRef tests failing on MacOS 8.6. 2003-06-16 13:57:09 +00:00
Jack Jansen e748f0358f This wasn't ansified. Fixed. 2003-06-16 13:56:05 +00:00
Jack Jansen 7327918631 Import EasyDialogs only when needed, so this works if there is no window
manager (if it isn't needed).
2003-06-16 13:55:21 +00:00
Jack Jansen f5e23ff3c6 Added two mac items (pimp auto-update and OSA property access). 2003-06-16 13:53:40 +00:00
Jack Jansen d3295baad7 Patch #755147 by Brian Lenihan:
- Build idle from new location
- use ln -fsn when linking files.
2003-06-16 09:47:25 +00:00
Gustavo Niemeyer d5b8090e4c Made DateTime's constructor accept a time.struct_time class,
besides plain tuples.
2003-06-16 02:49:42 +00:00
Tim Peters f545baa0cc Whitespace normalization. 2003-06-15 23:26:30 +00:00
Tim Peters cda32b7d1d mimetools.choose_boundary() news. 2003-06-15 23:13:35 +00:00
Tim Peters 9ca3f02dc0 ^D means EOF on Unix but not on Windows. Expand the example's prompt to
tell Windows Truth too.

Bugfix candidate.
2003-06-15 23:08:45 +00:00
Brett Cannon 9e6fedd2ec Add explicit text for where an obindex call for generators was since obindex does not cause output of its argument. 2003-06-15 22:57:44 +00:00
Brett Cannon 4a671fe634 Return None to signal that the module the object was defined in was not found when object has no __name__ attr but is needed to figure out location of object. 2003-06-15 22:33:28 +00:00
Martin v. Löwis 424a415951 Make CREDITS.txt a Latin-1 file. Extend ViewFile to support file encodings. 2003-06-15 22:28:05 +00:00
Tim Peters 04b9d47941 choose_boundary(): This no longer uses random, so stop importing it. 2003-06-15 22:12:23 +00:00
Tim Peters 080da28bdb choose_boundary(): Incorporated a threadsafe incrementing counter, so that
unique boundary strings within a program run are guaranteed.  On Windows,
duplicates were pretty likely, due to the coarse granularity of time.time.
Toned down the absurdly optimistic claims in the docstring.

Bugfix candidate.
2003-06-15 22:05:58 +00:00
Guido van Rossum b1e63c0d05 Install IDLE's .def files; these are essential for the configuration!
Also install the start script from Tools/script/idle.  (This may
change again.)
2003-06-15 20:40:33 +00:00
Guido van Rossum 5041cf6e44 Changes to install the new idle: it's now in Lib/idlelib instead of
Tools/idle, in both source and destination.  (There are still problems
when running the IDLE icon, but they don't seem to have to do with the
installer.)
2003-06-15 19:42:39 +00:00
Guido van Rossum 8b76351934 Add a missing 'self,' to a super call in recently checked-in code.
This was reported in the IDLEFORK bug tracker as #754971.
2003-06-15 19:08:57 +00:00
Kurt B. Kaiser 7de3772b28 Forwardport Patch from IDLEfork SF 615312
Convert characters from the locale's encoding on output
2003-06-15 17:49:59 +00:00
Kurt B. Kaiser 9e8b828f07 Support testing in .../Lib/idlelib when calling <python PyShell.py>
by providing other modules access to globals set up in PyShell.main()
2003-06-15 17:38:45 +00:00
Kurt B. Kaiser f35092c3d4 Move to Version 1.0b2 2003-06-15 17:12:25 +00:00
Greg Ward 523008c6cf Update copyright dates.
Define True and False (if necessary) so this module can be copied as-is
to other projects (eg. Optik, Docutils) that don't depend on Python 2.3.
2003-06-15 15:37:18 +00:00
Martin v. Löwis 1ef23657c4 Patch #751107: Slant must be 'roman', not 'normal'. 2003-06-14 21:40:04 +00:00
Martin v. Löwis d6efae500c Properly deal with tuples in Open._fixresult. Fixes bug reported in
follow-up to #621891.
2003-06-14 21:34:32 +00:00
Martin v. Löwis 19d173486b Patch #752671: NetBSD needs to link libintl to _locale.so. 2003-06-14 21:03:05 +00:00
Kurt B. Kaiser 61e2c9a402 Forwardport Patch from IDLEfork SF 610329
Remove deprecated tempfile usage
2003-06-14 17:56:25 +00:00
Martin v. Löwis d141a8c472 Use -R instead of -rpath on Solaris. Fixes #749911. 2003-06-14 15:20:28 +00:00
Martin v. Löwis 368de8f17f Give a warning if SO is set. Fixes #610332. 2003-06-14 14:46:38 +00:00
Martin v. Löwis 1867f24416 Always unwrap _socketobj in socket.ssl. Revert httplib.py 1.25.
Fixes #754447.
2003-06-14 13:30:53 +00:00
Martin v. Löwis bc12262593 Properly bracket variables. Fixes part of #749911. 2003-06-14 13:11:24 +00:00
Martin v. Löwis b8c084e82c Support keyword and topics help in cli(). Fixes #715782. 2003-06-14 09:03:46 +00:00
Martin v. Löwis 17fb50790d Treat empty dat/dir pairs as dumbdbm. Fixes #744687. 2003-06-14 08:16:34 +00:00
Martin v. Löwis 8316feb155 Explicitly undefine PACKAGE_ variables. Fixes #746012. 2003-06-14 07:48:07 +00:00
Martin v. Löwis ba8f5ff76c Copy builtin functions as atomic. Fixes #746304. Will backport to 2.2. 2003-06-14 07:10:06 +00:00
Martin v. Löwis c1aa8dceb7 Patch #746366: Update to current automake install-sh. Will backport to 2.2. 2003-06-14 06:58:32 +00:00