Fred Drake
ede77bfda4
Rename the "parser" package to "parsers" to be compatible with the PyXML
...
project.
2000-07-31 23:59:54 +00:00
Peter Schneider-Kamp
5a65c2d436
added count, extend, index, pop and remove to arraymodule
2000-07-31 20:52:21 +00:00
Thomas Wouters
a701597138
Fix inconsistent use of tab/space in indentation.
2000-07-30 15:38:35 +00:00
Mark Hammond
af4cfae300
Test that after resizing the mmap'd file, we can't seek beyond the new size.
2000-07-30 02:20:38 +00:00
Greg Ward
6b24dffd13
Catch syntax errors from processing template lines and turn them into
...
mere warnings.
Call 'findall()' on our FileList object before we start using it seriously.
2000-07-30 01:47:16 +00:00
Greg Ward
979db976a3
Added list-like methods: 'append()', 'extend()', 'sort()'.
...
Added 'remove_duplicates()'.
Simplified constructor: no longer take 'files' or 'allfiles' as args,
and no longer have 'dir' attribute at all.
Added 'set_allfiles()' and 'findall()' so the client does have a
way to set the list of all files.
Changed 'include_pattern()' to use the 'findall()' method instead of
the external function. (Of course, the method is just a trivial
wrapper around the function.)
2000-07-30 01:45:42 +00:00
Greg Ward
23266fe5cf
Replaced 'self.files' with 'self.filelist': now we carry around a FileList
...
instance instead of a list of filenames. Simplifies the "sdist" command
only a bit, but should allow greater simplification of FileList.
2000-07-30 01:30:31 +00:00
Greg Ward
4571ac15f7
The other half of Rene Liebscher's patch to add the Template class,
...
which I renamed to FileList: remove all the file-list-generation code from
the sdist command and adapt it to use the new FileList class instead.
2000-07-30 01:05:02 +00:00
Greg Ward
d5dcc174b0
Typo fix.
2000-07-30 01:04:22 +00:00
Greg Ward
58bff53320
Added DistutilsTemplateError.
2000-07-30 01:03:31 +00:00
Greg Ward
c019e2c7a8
Ditched the unused 'recursive_exclude_pattern()' method.
2000-07-30 00:37:04 +00:00
Greg Ward
0f341855ac
Renamed 'select_pattern()' to 'include_pattern()'.
...
Other cosmetic/doc/comment tweaks.
2000-07-30 00:36:25 +00:00
Greg Ward
7b3d56c85c
Renamed 'process_line()' to 'process_template_line()', and factored out
...
'_parse_template_line()'.
2000-07-30 00:21:36 +00:00
Greg Ward
c98927a059
Added class docstring and ditched inappropriate class attrs.
...
Indentation/whitspace fixes.
2000-07-30 00:08:13 +00:00
Greg Ward
adc1172064
Provides the FileList class for building a list of filenames by exploring
...
the filesystem, and filtering the list by applying various patterns.
Initial revision (almost) as supplied in a patch by Rene Liebscher; I
just renamed the class from Template to FileList, and the module
accordingly.
2000-07-30 00:04:17 +00:00
Andrew M. Kuchling
85ab7384f6
Exercise .readline() and .readlines(). More data is written to the
...
test file, too, so the methods have more work to do.
2000-07-29 20:18:34 +00:00
Andrew M. Kuchling
41616ee194
SF patch #100740 : Add optional size arguments to .readline() and
...
.readlines() methods. Inspired by a patch from Wolfgang Grafen,
though this version of the patch was completely rewritten from his
code.
2000-07-29 20:15:26 +00:00
Moshe Zadka
7a4409c1b2
Added support to recognize Python's internal "dumbdbm" database.
...
This closes bug 200 on Jitterbug.
2000-07-29 05:31:40 +00:00
Moshe Zadka
37c03ff3a9
Using shutil's function to copy data between file objects instead
...
of rolling our own.
Note:
This is my first sourceforge checkin. If you see anything funny about
this patch, please let me know.
2000-07-29 05:15:56 +00:00
Mark Hammond
152e3f0885
Was quite broken and incomplete. Now passes the test suite, but is still incomplete.
2000-07-28 03:45:32 +00:00
Mark Hammond
abfeff7f44
Fix a type in the docstrings, and make the module Unicode aware.
2000-07-28 03:42:40 +00:00
Trent Mick
c64c8ea71c
Remove erroneous empty trailing line. (cause test_winreg.py failure)
2000-07-27 23:26:28 +00:00
Fredrik Lundh
9407e553c0
-- changed test to work on platforms which have os.popen
...
but no os.fork
2000-07-27 07:42:43 +00:00
Greg Ward
ae0965eb23
Bump version to 0.9.1pre.
2000-07-27 02:17:40 +00:00
Greg Ward
612eb9f58f
Fixed a grab-bag of typos spotted by Rob Hooft.
2000-07-27 02:13:20 +00:00
Greg Ward
aa5372caa7
Remove unused 'search_dir()' method.
...
Comment tweak.
2000-07-27 01:58:45 +00:00
Greg Ward
7499847c53
Fix to call 'library_filename()' instead of the non-existent
...
'shared_library_filename()'.
2000-07-27 01:23:19 +00:00
Greg Ward
53c1bc3f9b
Typo fix from David Ascher.
2000-07-27 01:21:54 +00:00
Mark Hammond
4f570b9239
Patch #100873 - Use registry to find proxies for urllib on Win32
...
Note that this patch looks worse than it is - an existing function (getproxies() for all platforms other than Win/Mac) has been moved, renamed and indentation changed, but the body of that function is identical. Windows now allows the environment variables to override the registry.
2000-07-26 07:04:38 +00:00
Peter Schneider-Kamp
fdee0f0aa7
added test case for fixed duplicate arguments bug in Python/compile.c
2000-07-25 22:15:45 +00:00
Fred Drake
9f2550f581
makedirs(), removedirs(): If the tail of the path is empty, do a second
...
split so the logic does not fail in corner cases.
This closes bug #407 .
2000-07-25 15:16:40 +00:00
Jeremy Hylton
0365180a74
a couple of nits from Patch #100933
2000-07-25 14:34:38 +00:00
Andrew M. Kuchling
c1b4624447
Made an error message slightly more useful if select() returns something goofy
2000-07-25 00:51:31 +00:00
Fredrik Lundh
82c330e591
-- updated to include known problems in SRE 0.9.6
...
(cf. test/output/test_sre)
2000-07-24 22:35:11 +00:00
Fred Drake
1790dd4b66
Restore TestSkipped exception; appears to have disappeared in last checkin.
...
Make both TextFailed and TestSkipped subclasses of Error, which derives
from Exception. Docstrings have been added for the exceptions and module.
2000-07-24 06:55:00 +00:00
Fredrik Lundh
8a3ebf8ca8
-- SRE 0.9.6 sync. this includes:
...
+ added "regs" attribute
+ fixed "pos" and "endpos" attributes
+ reset "lastindex" and "lastgroup" in scanner methods
+ removed (?P#id) syntax; the "lastindex" and "lastgroup"
attributes are now always set
+ removed string module dependencies in sre_parse
+ better debugging support in sre_parse
+ various tweaks to build under 1.5.2
2000-07-23 21:46:17 +00:00
Paul Prescod
623511b7df
Added a few docstrings
2000-07-21 22:05:49 +00:00
Paul Prescod
863d8b855f
Added docstrings
2000-07-21 21:43:09 +00:00
Thomas Wouters
ff4df6d6fb
Small fixes by Petru Paler (patch #100946 ) checked in with esr's approval.
2000-07-21 05:19:59 +00:00
Skip Montanaro
e9e5dcd4db
restructured a bit and added some more content...
2000-07-19 17:19:49 +00:00
Skip Montanaro
4d06923122
make TestFailed a class exception
2000-07-19 17:14:48 +00:00
Skip Montanaro
018dfae246
added rewritten normpath from Moshe Zadka that does the right thing with
...
paths containing ..
2000-07-19 17:09:51 +00:00
Thomas Wouters
baf2663e44
Enable extra testing now that os.isatty() is in. (Also tests os.isatty ;P)
2000-07-19 14:51:54 +00:00
Greg Stein
dd6eefb348
no changes other than indentation level (now 4) and comment reflow.
...
use "cvs diff -b" to verify.
2000-07-18 09:09:48 +00:00
Skip Montanaro
1d3dd74574
* split on / or \
...
* case insensitive comparison
2000-07-17 03:06:58 +00:00
Skip Montanaro
802bc5d9b3
damn! cut-n-paste from ntpath forgot the "import re"
2000-07-17 03:06:26 +00:00
Skip Montanaro
6222c05af6
* split on / or \
...
* case insensitive
2000-07-17 03:04:19 +00:00
Paul Prescod
d61591813c
At GVR's request.
2000-07-16 23:00:10 +00:00
Paul Prescod
9eab78994e
Online help facility for the Python interprter and other interactive
...
environments.
2000-07-16 19:53:00 +00:00
Skip Montanaro
a924bb1ad2
split and join on "/" in commonprefix
2000-07-16 16:52:45 +00:00