Guido van Rossum
a55dda6773
Grammar repair in comment.
2002-10-17 16:33:40 +00:00
Guido van Rossum
c9776bd8dd
Use tempfile.gettempdir() to get the temp directory rather than
...
hardcoding "/tmp".
2002-10-17 16:26:45 +00:00
Guido van Rossum
b390315872
Must catch TypeError from int(length).
2002-10-17 16:21:35 +00:00
Guido van Rossum
f66cccf506
Restructure: move all wiki code into a separate module.
2002-10-17 15:53:02 +00:00
Guido van Rossum
26a1ac462c
Add trailing newline when saving.
2002-10-17 13:34:01 +00:00
Guido van Rossum
48123b266c
Security fixes: reject non-wiki-word page names; set homedir to /tmp.
...
Show errors returned by store().
A few nits.
2002-10-17 11:45:54 +00:00
Fred Drake
f606e8d705
Added missing entries to __all__.
2002-10-16 21:21:39 +00:00
Fred Drake
707056580f
Make sure we test urlsplit() / urlunsplit() directly, rather than
...
guessing that urlparse() / urlunparse() use them.
Add tests of urldefrag().
2002-10-16 21:02:36 +00:00
Guido van Rossum
68077210c2
Some really simple cgi examples. cgi3 is a MiniWiki.
2002-10-16 21:01:27 +00:00
Martin v. Löwis
60a5d72908
Patch #623780 : Replace obsolete struct macros.
2002-10-16 20:28:25 +00:00
Fred Drake
98ef20d5e4
Document urldefrag().
2002-10-16 20:07:54 +00:00
Martin v. Löwis
ceaa77cf85
Add n_unnamed_fields into the type.
2002-10-16 19:10:03 +00:00
Martin v. Löwis
a19bfe07e0
Correct stat_result float time stamps entry.
2002-10-16 18:28:36 +00:00
Martin v. Löwis
f607bdaa77
Add PyStructSequence_UnnamedField. Add stat_float_times.
...
Use integers in stat tuple, optionally floats in named fields.
2002-10-16 18:27:39 +00:00
Thomas Heller
5b1614d568
Recreated after source changes.
2002-10-16 17:51:38 +00:00
Guido van Rossum
1e700d24e9
posix_execve(): add missing argument for "et" format in PyArg_Parse()
...
call. This caused mysterious crashes (hard to debug because it was
happening in a child process).
2002-10-16 16:52:11 +00:00
Fred Drake
2314a0470f
Use string methods. Re-organize imports to Python Normal Form.
2002-10-16 16:06:07 +00:00
Fred Drake
27c4e09a62
Only reset _is_empty if needed.
2002-10-16 16:02:08 +00:00
Fred Drake
df85f0b09f
Modernization: Use string methods, use str instead of
...
types.StringType, inherit from list instead of
UserList.
2002-10-16 16:00:42 +00:00
Fred Drake
071972e426
Use string methods.
2002-10-16 15:30:17 +00:00
Fred Drake
06912b7702
Use string methods. Organize the imports in Python Normal Form.
2002-10-16 15:29:07 +00:00
Fred Drake
4fe904d3d6
Use string methods; minor code cleanup.
2002-10-16 14:59:02 +00:00
Thomas Heller
0cf4269862
Recreated after source changes.
2002-10-15 19:45:25 +00:00
Martin v. Löwis
77ac429eff
Patch #572628 : Optional timeouts for put and get.
2002-10-15 15:11:13 +00:00
Thomas Heller
d98d25e22d
Revert the previous checkin - it didn't work anyway.
2002-10-15 14:51:58 +00:00
Guido van Rossum
6e5680fc83
For some reason (probably cut and paste), __ipow__ for new-style
...
classes was called with three arguments. This makes no sense, there's
no way to pass in the "modulo" 3rd argument as for __pow__, and
classic classes don't do this. [SF bug 620179]
I don't want to backport this to 2.2.2, because it could break
existing code that has developed a work-around. Code in 2.2.2 that
wants to use __ipow__ and wants to be forward compatible with 2.3
should be written like this:
def __ipow__(self, exponent, modulo=None):
...
2002-10-15 01:01:53 +00:00
Martin v. Löwis
13b1a5cc99
Don't drop old slots if _unicode_to_string did not change anything.
2002-10-14 21:11:34 +00:00
Martin v. Löwis
d919a59ab5
Allow Unicode strings in __slots__, converting them to byte strings.
2002-10-14 21:07:28 +00:00
Martin v. Löwis
ff9284bc2e
Allow Unicode strings as message and module name.
2002-10-14 21:06:02 +00:00
Guido van Rossum
e0fea6c4ed
[SF bug 620364]
...
In build_extensions(), don't proceed if srcdir is None. Probably
somebody who tried this on Windows. :-)
2002-10-14 20:48:09 +00:00
Martin v. Löwis
5357c6511d
Convert empty string literal to string. Speed up creation of idmap.
2002-10-14 20:03:40 +00:00
Guido van Rossum
bbc0568a5c
Fix for 1.33: urlsplit() should only add '//' if scheme != ''.
...
Will add test and backport.
2002-10-14 19:59:54 +00:00
Barry Warsaw
6e75364cbe
I'd forgotten that tcsh was the default for 10.1, but SF's 10.1 system
...
uses bash and so does my 10.2 system. "limit stacksize 2048" is the
right invocation for tcsh/csh.
2002-10-14 18:15:35 +00:00
Barry Warsaw
6a8557da36
There was a typo in the MacOSX section regarding the stacksize issue.
...
There's no limit command near as I can tell. Should be the bash
builtin ulimit command.
2002-10-14 18:04:39 +00:00
Barry Warsaw
67f8f2fe2a
append(): Fixing the test for convertability after consultation with
...
Ben. If s is a byte string, make sure it can be converted to unicode
with the input codec, and from unicode with the output codec, or raise
a UnicodeError exception early. Skip this test (and the unicode->byte
string conversion) when the charset is our faux 8bit raw charset.
2002-10-14 16:52:41 +00:00
Fred Drake
816aebdf94
Use the same shade of blue as the site navigation areas.
2002-10-14 15:45:11 +00:00
Barry Warsaw
a74771c0b9
Two new tests for splitting (or not splitting) 8-bit header data.
2002-10-14 15:26:17 +00:00
Barry Warsaw
1a6ea3398e
Bump the __version__
2002-10-14 15:24:18 +00:00
Barry Warsaw
5e3bcff651
__init__(): Fix an invariant, that the charset item in a chunk tuple
...
must be a Charset instance, not a string. The bug here was that
self._charset wasn't being converted to a Charset instance so later
.append() calls which used the default charset would break.
_split(): If the charset of the chunk is '8bit', return the chunk
unchanged. We can't safely split it, so this is the avenue of least
harm.
2002-10-14 15:13:17 +00:00
Barry Warsaw
6c2bc46355
_split_header(): If we have a header which is a byte string containing
...
8-bit data, we cannot split it safely, so return the original string
unchanged.
_is8bitstring(): Helper function which returns True when we have a
byte string that contains non-ascii characters (i.e. mysterious 8-bit
data).
2002-10-14 15:09:30 +00:00
Barry Warsaw
7cd724049f
CHARSETS: Add faux '8bit' encoding for representing raw 8-bit data for
...
which we know nothing else.
2002-10-14 15:06:55 +00:00
Fred Drake
f834ecbba5
Minor refactoring to avoid code duplication.
2002-10-14 15:04:33 +00:00
Tim Peters
19697bc355
Update list of Windows buildnos for 2.2.2 final.
2002-10-14 15:01:44 +00:00
Guido van Rossum
0d976551fb
Add finditer to __all__ (when defining it at all).
...
SF bug 585882. Will forward-port.
2002-10-14 12:22:17 +00:00
Greg Ward
78cc051617
Fix copyright date: the core of this code actually dates back to 1999
...
(rev. 1.4 of distutils/fancy_getopt.py).
2002-10-13 19:23:18 +00:00
Martin v. Löwis
6f6873baa1
Patch #611760 : read archives with comments.
2002-10-13 13:54:50 +00:00
Martin v. Löwis
b24e3477dc
Patch #621891 : Add askopenfile{name}s.
2002-10-13 10:28:04 +00:00
Martin v. Löwis
2ec362717b
Patch #621205 : Tkinter updates for tk8.4.
2002-10-13 10:22:08 +00:00
Barry Warsaw
0c358258c9
_encode_chunks(), encode(): Don't modify self._chunks. As Ben says:
...
Also, it fixes a really egregious error in Header.encode() (really
in Header._encode_chunks()) that could cause a header to grow and
grow each time encode() was called if output_codec was different
from input_codec.
Also, fix a typo.
2002-10-13 04:06:28 +00:00
Barry Warsaw
ab9439fdd4
Update the urls and other information about the add-on Japanese,
...
Korean, and Chinese codecs.
2002-10-13 04:00:45 +00:00