| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
| |
In literal mode, also don't do anything about entity and character
references, or about closing CDATA elements.
|
|
|
|
|
|
| |
When literal mode is entered it should exit automatically when the
matching close tag of the last unclosed open tag is encountered. This
patch fixes this.
|
|
|
|
|
|
|
|
|
|
|
|
| |
In SimpleHTTPServer.py, the server specified in test() should
be BaseHTTPServer.HTTPServer, in case the request handler should
want to reference the two attributes added by
BaseHTTPServer.server_bind:
self.server_name = hostname
self.server_port = port
There was some Bobo CGI code that wanted access to those attributes.
|
|
|
|
|
|
|
|
|
| |
In CGIHTTPServer.py, the list of acceptable formats is -split-
on spaces but -joined- on commas, resulting in double commas
in the joined text. It appears harmless to my browser but
ought to be fixed anyway.
'A, B, C' -> 'A,', 'B,', 'C,' -> 'A,,B,,C'
|
|
|
|
| |
might actually work.
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
threaded versions of Unix Server classes, using the
ThreadingMixIn class:
ThreadingUnixStreamServer
ThreadingUnixDatagramServer
|
| |
|
|
|
|
| |
do_delete(); do_clear() was meant. By Greg Ward.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Because it might be a common mistake to pass a single string, this
situation is treated separately.
Since we were making a copy of the longopts list anyway, we now use
the list() function -- this made it necessary to change all uses of
the local variable (and argument) 'list' to something more meaningful,
i.e., 'opts'.
Also added docstrings (copied from the library manual) and removed the
(now redundant) module comments.
|
|
|
|
| |
Noted by Stefan Witzel.
|
| |
|
|
|
|
|
| |
unlink() or fdopen() fail, close the file descriptor and re-raise the
exception.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
filenames generated are easily predictable, it is possible to trick an
unsuspecting program into overwriting another file by creating a
symbolic link with the predicted name. Fix this by using the
low-level os.open() function with the O_EXCL flag and mode 0700. On
non-Unix platforms, presumably there are no symbolic links so the
problem doesn't exist. The explicit test for Unix (posix, actually)
makes it possible to change the non-Unix logic to work without a
try-except clause.
The mktemp() file is as unsafe as ever.
|
| |
|
|
|
|
| |
own version.
|
|
|
|
|
|
|
|
|
|
|
|
| |
"""
I've attached a long overdue patch to pickle.py to bring it to format
1.3, which is the same as 1.2 except that the binary float format
is supported. This is done using the new platform-indepent format
features of struct.
This patch also gets rid of the undocumented obsolete Pickler
dump_special method.
"""
|
| |
|
|
|
|
|
|
|
|
|
| |
"""
Jochen Hayek has reported a problem with some versions of IMAP4
servers that choose to mix the case in their CAPABILITIES response.
The patch below fixes the problem.
"""
|
|
|
|
|
| |
Noted by Fredrik Lundh.
(Note -- this module is pretty silly.)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
"""
The FieldStorage constructor calls the read_multi method. The read_multi
method creates new FieldStorage objects, re-invoking the constructor
(on the new objects). The problem is that the 'environ', 'keep_blank_values',
and 'strict_parsing' arguments originally passed to the constructor are not
propigated to the new object constructors. This causes os.environ to be used,
leading to a miss-handling of the parts.
I fixed this by passing these arguments to read_multi and then on to the
constructor. See the context diff below.
"""
|
|
|
|
| |
for b/w compatibility with 1.5.1.
|
|
|
|
|
|
|
|
| |
<sometag attrib=">">
correctly.
Also changed comparisons of re matches and searches into explicit
comparisons with None.
(Sjoerd Mullender)
|
| |
|
|
|
|
| |
real one.
|
|
|
|
| |
recalculated.
|
|
|
|
|
|
|
|
| |
assign the exception info to sys.last_{type,value,traceback}. That
way, an introspective Tkinter app can inspect its own stack trace.
(The controversy is that it would keep some objects alive, but that's
probably no big deal.)
|
| |
|
|
|
|
| |
statements now also stop at ';' (formerly they only stopped at '#').
|
|
|
|
| |
x/yview_scroll/moveto.)
|
| |
|
| |
|
|
|
|
|
| |
from a.b import c
import a . b
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
Fix bug in NoDefaultRoot() -- _default_root wasn't declared global;
and made it reentrant.
Don't set _default_root to whatever master gets passed in to
BaseWidget._setup() (only set it when we need to create a new Tk()
widget).
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
-sticky option.
|
|
|
|
|
|
|
|
| |
there's a syntax error. (In particular, display the correct
filename). This changes the API: if there's a syntax error, the
function now returns normally after dumping the error to sys.stderr.
I changed Sjoerd's use of string.join(string.split(...)) with
string.replace().
|
|
|
|
|
|
|
|
|
|
| |
Added a debug function to replace 'print' statements.
Ensured that response attached to 'NO' replies is passed back.
added readonly exception.
Rearranged method order into types.
Ensure select returns a meaningful error on 'NO'.
'NO' returns from authenticate and login raise error with last message,
not list.
|
|
|
|
| |
works and Greg Ward just reported a problem it caused...
|
|
|
|
|
|
|
|
|
|
|
|
| |
1. Generate a correct Content-Length header visible through the info() method
if a request to open an FTP URL gets a length in the response to RETR.
2. Take a third argument to urlretrieve() that makes it possible to progress-
meter an urlretrieve call (this is what I needed the above change for).
See the second patch band below for details.
3. To avoid spurious errors, I commented out the gopher test. The target
document no longer exists.
|
| |
|