Jeremy Hylton
3c19ec4eab
Fix when pyexpat not built
...
Import pyexpat first so that import error occurs when it is not
available.
2001-07-30 21:47:25 +00:00
Martin v. Löwis
3bd071e3f7
Patch #442866 : Tests for codeop.py.
2001-07-30 12:30:08 +00:00
Martin v. Löwis
27c430e54e
Patch #445538 : add completion for pstats.py sort cmd.
2001-07-30 10:21:13 +00:00
Just van Rossum
8d8e7a3256
Do convert_path() on script paths (now PyXML builds out of the box
...
under MacOS.)
2001-07-29 21:39:18 +00:00
Martin v. Löwis
70195da3ff
Patch #443337 : Fix incompatibilities in imputil's behavior.
2001-07-28 20:33:41 +00:00
Martin v. Löwis
d3011cd1d3
Remove usage of strop module.
2001-07-28 17:59:34 +00:00
Martin v. Löwis
66b6e192b9
Patch #416224 : add readline completion to cmd.Cmd.
2001-07-28 14:44:03 +00:00
Tim Peters
33dc0a1705
One more crack at join(): stop trying to pretend this isn't a mass of
...
special cases. test_pkg works again on Windows.
2001-07-27 08:09:54 +00:00
Tim Peters
4223f89edd
Change ntpath.join() so that join("d:/", "/whatever") returns
...
d:/whatever instead of /whatever. While I'm afraid changing isabs()
to be *consistent* with this would break lots of code, it makes
best sense for join() to do it this way. Thanks to Alex Martelli for
pushing back on this one!
2001-07-26 21:54:37 +00:00
Tim Peters
7321ec437b
SF bug #444510 : int() should guarantee truncation.
...
It's guaranteed now, assuming the platform modf() works correctly.
2001-07-26 20:02:17 +00:00
Marc-André Lemburg
7cf92fa1c8
Add backwards compatibility.
2001-07-26 18:06:58 +00:00
Martin v. Löwis
4f1cd8bdcb
Patch #411138 : Rename config.h to pyconfig.h. Closes bug #231774 .
2001-07-26 13:41:06 +00:00
Martin v. Löwis
4eb5940a4d
Untabify IPv6 changes.
2001-07-26 13:37:33 +00:00
Guido van Rossum
2e441f7836
Fix a denial-of-service attack, SF bug #443120 .
...
Code by Evan Simpson.
2001-07-25 21:00:19 +00:00
Greg Ward
7cf7e7e529
Undo revision 1.7: always mangle a #! line containing "python" to point
...
to the current Python interpreter (ie. the one used for
building/installation), even (especially!) if "/usr/bin/env" appears in
the #! line.
Rationale: installing scripts with "#!/usr/bin/env python" is asking for
trouble, because
1) it might pick the wrong interpreter (not the one used to
build/install the script)
2) it doesn't work on all platforms (try it on IRIX 5, or on Linux
with command-line options for python)
3) "env" might not be in /usr/bin
2001-07-25 20:20:11 +00:00
Greg Ward
e628a2fa85
Don't "import *" from stat at all -- just import what's needed, and
...
do it back in copy_file() (not at module level).
2001-07-25 19:48:03 +00:00
Marc-André Lemburg
80d1dd5f3b
Fix for bug #444493 : u'\U00010001' segfaults with current CVS on
...
wide builds.
2001-07-25 16:05:59 +00:00
Martin v. Löwis
1669669f4c
Remove unused imports from previous checkin.
2001-07-25 06:12:16 +00:00
Martin v. Löwis
a43c2f845e
Patch #401196 : Use getaddrinfo and AF_INET6 in TCP servers and clients.
2001-07-24 20:34:08 +00:00
Fred Drake
5e9eb98ff6
Oh, ok, so plainpager is probably marginally better.
2001-07-23 19:48:10 +00:00
Fred Drake
0a66fcb116
If $TERM is "dumb" or "emacs", just dump the text instead of trying to run
...
"less".
Patch contributed by Alex Convertry.
This closes SF patch #443551 .
2001-07-23 19:44:30 +00:00
Fred Drake
f973c6d594
Make this test work under Windows as well.
2001-07-23 16:30:21 +00:00
Fred Drake
99e87f9e23
Test for the "glob" module, contributed by Nick Mathewson.
...
Heavily modified so this doesn't break on Windows.
This closes SF patch #441175 .
2001-07-23 16:08:36 +00:00
Tim Peters
fa712ca1ed
Whitespace normalization.
...
Note: This test fails on Windows. Don't know why yet.
2001-07-23 09:44:21 +00:00
Fred Drake
4c81d60fcb
Tests for the "commands" module, contributed by Nick Mathewson.
...
This closes SF patch #440291 .
2001-07-23 04:08:01 +00:00
Fred Drake
1586136193
New tests by Nick Mathewson, for the fpformat module.
...
This closes SF patch #440290 .
2001-07-23 02:46:35 +00:00
Steven M. Gava
ba247a6bbb
updated about info for 0.8.1 release
2001-07-21 09:59:58 +00:00
Steven M. Gava
88ff736ee2
new material for 0.8.1 release
2001-07-21 09:50:55 +00:00
Tim Peters
137759407b
On WIndows, skip the part of test_dircache that can't work on Windows.
2001-07-21 02:22:14 +00:00
Tim Peters
87cc0c329e
Whitespace normalization, plus:
...
+ test_quopri.py relied on significant trailing spaces. Fixed.
+ test_dircache.py (still) doesn't work on Windows (directory mtime on
Windows doesn't work like it does on Unix).
2001-07-21 01:41:30 +00:00
Fred Drake
7f5296e7c0
Make the add*() helper functions more robust for use after intialization
...
is complete: recompute _dirs_in_sys_path each time these functions are
entered after module initialization is complete, and reset before
returning to user code.
This closes SF patch #442983 .
2001-07-20 20:06:17 +00:00
Andrew M. Kuchling
5a3e4cb0a2
Patch #429442 from Jason Tishler: Corrects sys.platform and
...
distutils.util.get_platform() problems caused by the cruft contained
in Cygwin's uname -s.
2001-07-20 19:29:04 +00:00
Fred Drake
79e75e1916
Use string.ascii_letters instead of string.letters (SF bug #226706 ).
2001-07-20 19:05:50 +00:00
Fred Drake
0f715d2aa1
Use string.ascii_letters instead of string.letters (SF bug #226706 ).
...
Work-around a font-lock bogosity.
2001-07-20 18:53:34 +00:00
Fred Drake
27eebb8c76
Use string.ascii_letters instead of string.letters.
...
Remove unused import.
2001-07-20 18:52:02 +00:00
Fred Drake
960fdf9ac3
Added the constants ascii_letters, ascii_lowercase, and ascii_uppercase
...
to the string module. This was determined to be the right approach in
SF bug #226706 .
2001-07-20 18:38:26 +00:00
Marc-André Lemburg
6c6bfb7c70
Make the unicode-escape and the UTF-16 codecs handle surrogates
...
correctly and thus roundtrip-safe.
Some minor cleanups of the code.
Added tests for the roundtrip-safety.
2001-07-20 17:39:11 +00:00
Guido van Rossum
27451d0fc8
Copying this 2.1.1 bugfix to the trunk:
...
Fix showstopper SF bug #442983 : use of site.addsitedir() was broken
because it references the global dirs_in_sys_path which is deleted.
The fix avoids deleting that global.
(My email through python.org or digicool.com is non-functional at the
moment; use gvanrossum@home.com to reach me.)
2001-07-20 14:57:12 +00:00
Piers Lauder
15e5d5344d
apply patch item #416253
2001-07-20 10:52:06 +00:00
Piers Lauder
34d9705943
fix missed conversion in ESR's string conversion
2001-07-20 10:28:51 +00:00
Steven M. Gava
fae9fb197b
update in preparation for 0.8.1 alpha release
2001-07-20 08:53:38 +00:00
Steven M. Gava
d39993ef9d
bring up to date for 0.8.1 release
2001-07-20 01:36:49 +00:00
Fred Drake
84073bfdb0
Regression test for the dircache module, contributed by Nick Mathewson.
...
Modified by Fred Drake.
This closes SF patch #440827 .
2001-07-19 22:59:09 +00:00
Fred Drake
8e6669ad05
Test for the repr module, contributed by Nick Mathewson.
...
This closes SF patch #440826 .
2001-07-19 22:27:56 +00:00
Fred Drake
390e9dbd4f
Make the new docstrings better conform to Guido's style guide.
2001-07-19 20:57:23 +00:00
Fred Drake
08f8dd6d0c
Added docstrings based on a patch by Evelyn Mitchell.
...
This closes SF patch #440153 .
2001-07-19 20:08:04 +00:00
Fred Drake
a58947f600
Make sure path names inserted into ZIP files are normalized to use "/" as
...
the directory separator, as required by the format specification.
This closes SF bug #440693 .
2001-07-19 19:44:25 +00:00
Tim Peters
d4f7f609bf
Add some test cases for ntpath.join().
2001-07-19 19:11:41 +00:00
Tim Peters
3b5e4d1e3c
Cosmetic: break the long lines in test_ntpath.py, and get rid of its
...
expected-output file.
2001-07-19 19:02:12 +00:00
Tim Peters
1bdd0f2559
SF bug #44271 : os.path.expanduser problem w/o HOME set.
...
This is a Windows-specific glitch that's really due to that, e.g.,
ntpath.join("c:", "/abc") returned "/abc" instead of "c:/abc". Made
join smarter.
Bugfix candidate.
2001-07-19 17:18:18 +00:00