Walter Dörwald
9ff3f03c3e
Fix whitespace.
2003-06-18 14:17:01 +00:00
Raymond Hettinger
b5155e30ce
Fix typo.
2003-06-18 01:58:31 +00:00
Raymond Hettinger
96a8233b64
SF patch #751038 fixing SF bug#750092: exec doesn't need newline
...
Patch contributed by Steven Taschuk.
2003-06-18 01:32:24 +00:00
Raymond Hettinger
be9715398b
SF bug #753451 : classmethod abuse --> SystemError
...
Check the argument to classmethod for callability.
Backport candidate.
2003-06-18 01:13:41 +00:00
Greg Ward
9b15878369
Remove debug print on filename with NUL byte.
2003-06-18 00:54:28 +00:00
Greg Ward
8e36d28f3c
SF patch #755987 (Jim Ahlstrom):
...
This is a patch for Bug 755031: If a null byte appears in
a file name, Python zipfile.py retains it, but InfoZip
terminates the name. Null bytes in file names are used
as a trick by viruses. I tested WinZip, and it also
truncates the file name at the null byte.
The patch also fixes a buglet: If a zipfile incorrectly
uses a directory separator other than '/', there was an
invalid complaint that the central directory name does
not match the file header name.
I also removed my name from the top of the file. It was
there for legal reasons which I believe no longer apply.
Many people have worked on this file besides me.
2003-06-18 00:53:06 +00:00
Raymond Hettinger
7d98fb9806
Add missing DECREF.
2003-06-17 23:14:40 +00:00
Brett Cannon
783eaf4774
Change all header strings to be as if they were capitalize()'ed. Also call
...
capitalize in AbstractHTTPHandler before inserting headers into HTTP instance.
Closes bug #649742 , again.
2003-06-17 21:52:34 +00:00
Walter Dörwald
5ecd6c4db2
Fix typo in comment.
2003-06-17 20:22:24 +00:00
Walter Dörwald
e8049befdf
Use _PyEval_SliceIndex to handle list.index() calls with
...
huge start and stop arguments. Add tests.
2003-06-17 19:27:39 +00:00
Ken Manheimer
8e9b80fd56
Remove short-circuitying grubbing by using last grubbed buffer. It's
...
evil - if the last grubbed buffer didn't happen to be the right one,
you couldn't remedy.
Mainline emacs compat - don't use third arg to buffer-substring (which
was for explicitly identifying the buffer in which to seek the
substring, and which turns out to be unnecessary).
2003-06-17 19:18:57 +00:00
Raymond Hettinger
0887c732e7
Fix docstring
2003-06-17 16:53:25 +00:00
Walter Dörwald
93719b56ed
Updated documentation for the new slice arguments for list.index().
2003-06-17 16:19:56 +00:00
Walter Dörwald
e0a1bb6341
Whitespace normalization.
2003-06-17 15:48:11 +00:00
Jack Jansen
53e54fd934
Make sure the files in the installer have group "admin", otherwise
...
administrators can still not add packages.
2003-06-17 14:36:54 +00:00
Guido van Rossum
2743d87d79
Fix sloppy index() implementation:
...
- don't use min() and max()
- interpret negative start/stop argument like negative slice indices
2003-06-17 14:25:14 +00:00
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