Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Put back the call to report_unbalanced() that was lost when | Guido van Rossum | 1998-07-07 | 1 | -0/+2 |
| | | | | parse_endtag() was restructured in parse_endtag() and finish_endtag(). | ||||
* | Get rid of some obsolete opcodes. | Guido van Rossum | 1998-07-07 | 1 | -5/+0 |
| | |||||
* | The permissions ('mode' flag) should default to 0666. | Guido van Rossum | 1998-07-03 | 1 | -1/+1 |
| | |||||
* | The _fromlinepattern was a little too restrictive -- some sendmails | Guido van Rossum | 1998-07-02 | 1 | -1/+1 |
| | | | | don't put the seconds in the time! | ||||
* | According to Robin Dunn, at least one FTP server returns 200 instead | Guido van Rossum | 1998-07-02 | 1 | -1/+1 |
| | | | | of 250 on a successful delete. | ||||
* | Gotta have an __init__() method -- pdb.py calls it! | Guido van Rossum | 1998-07-01 | 1 | -0/+2 |
| | |||||
* | Several changes: | Barry Warsaw | 1998-07-01 | 1 | -40/+90 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 1. Convert to using re module 2. Added two new exception classes a. MissingSectionHeaderError which signals an early parsing exception when options appear in the file before any section header. Previously a bogus TypeError was thrown deeper down. b. ParsingError which collates any non-fatal parsing errors. ConfigParser.read() will raise this after the entire file was parsed if any errors occurred during parsing (client could just catch the exception and continue, because the ConfigParser instance would still be initialized with the valid data). (small note: Error.__msg => Error._msg) 3. ConfigParser.__read() now uses re which has the following minor semantic change: underscore is now allowed in section header and option name. Also, because of the old regexps, theoretically. Fixed continuation line bug reported by F. Lundh. 4. It seemed that the old ConfigParser automatically added the option `name' to every section, which contained the name of the section. This seemed bogus to me so I took it out. | ||||
* | Improved test set for int() and long() string conversions. | Guido van Rossum | 1998-06-30 | 1 | -0/+59 |
| | |||||
* | Add pop method. | Guido van Rossum | 1998-06-30 | 1 | -0/+1 |
| | |||||
* | Fix the comments describing the return values of the head(), body(), | Guido van Rossum | 1998-06-30 | 1 | -0/+6 |
| | | | | article() commands. | ||||
* | For completeness, add a dummy load_package() method to RHooks. It | Guido van Rossum | 1998-06-29 | 1 | -0/+1 |
| | | | | | should never be called, so this isn't really needed, but this signifies that rexec now supports packages -- because ihooks does. | ||||
* | Support loading of packages. (I had this coded up for a while but | Guido van Rossum | 1998-06-29 | 1 | -34/+172 |
| | | | | | didn't want to commit until it had been tested. I presume that it works in Grail.) | ||||
* | Added findall() to RegexObject -- return a list of all matches in a | Guido van Rossum | 1998-06-29 | 1 | -16/+61 |
| | | | | | | string. Added groupdict() to MatchObject -- return the named groups as a dict. Added default argument to groups() to specify what to return for unmatching groups; groupdict() also has this. | ||||
* | Improved by Eric Raymond. | Guido van Rossum | 1998-06-29 | 1 | -17/+84 |
| | |||||
* | # Make tabnanny happy. | Guido van Rossum | 1998-06-29 | 1 | -3/+3 |
| | |||||
* | Improved by Eric Raymond. | Guido van Rossum | 1998-06-29 | 1 | -18/+29 |
| | |||||
* | Oops! Of course, Tim is right -- when the item is not a hex number, | Guido van Rossum | 1998-06-29 | 1 | -2/+2 |
| | | | | the '%' should be put back in. | ||||
* | Speed-up unquote(), inspired by post from Daniel Walton. | Guido van Rossum | 1998-06-28 | 1 | -18/+16 |
| | |||||
* | Remove RCS and #! cruft at top. | Guido van Rossum | 1998-06-26 | 1 | -4/+0 |
| | |||||
* | Allow binding a Tcl command (given as a string) as well as a Python | Guido van Rossum | 1998-06-25 | 1 | -3/+3 |
| | | | | function. | ||||
* | Treat "HEAD" same as "GET", so that CGI scripts won't fail. | Guido van Rossum | 1998-06-25 | 1 | -1/+1 |
| | |||||
* | Rewrite the (test) main program so that when used as a script, it can | Guido van Rossum | 1998-06-25 | 1 | -5/+29 |
| | | | | retrieve one or more URLs to stdout. Use -t to run the self-test. | ||||
* | Piers' latest version, labeled 2.11. This time he integrated my | Guido van Rossum | 1998-06-25 | 1 | -18/+14 |
| | | | | | changes, and made only a few minor changes. No changes of my own this time. | ||||
* | Eric Raymond added support for ESMTP protocol and corrected some typos | Guido van Rossum | 1998-06-25 | 1 | -33/+113 |
| | | | | in comments and doc strings. | ||||
* | Subsume the interact() function in a class. This should make it | Guido van Rossum | 1998-06-23 | 1 | -42/+197 |
| | | | | | possible to use this in PythonWin, and to replace Fredrik Lundh's PythonInterpreter class. Fredrik is credited with the class' API. | ||||
* | "if match(x) >= 0:" smells of regex matching; should use "if match(x):" | Guido van Rossum | 1998-06-23 | 1 | -1/+1 |
| | |||||
* | Patch by Eric Raymond: add an optional 'seekable' flag to the | Guido van Rossum | 1998-06-23 | 1 | -11/+23 |
| | | | | | MultiFile constructor, and only do the posstack bookkeeping when it is true. | ||||
* | Bugfix to ESR's code reported by himself: should use hasattr() to test | Guido van Rossum | 1998-06-22 | 1 | -1/+1 |
| | | | | for presence unread, not getattr()! | ||||
* | Turns out that 'winfo id' returns the id as a hex string, with 0x prefix. | Guido van Rossum | 1998-06-19 | 1 | -1/+1 |
| | | | | | The int() function (aliased to getint()) doesn't handle that, so we must use self.tk.getint() again... | ||||
* | Different trick to get the _test() window to pop up. | Guido van Rossum | 1998-06-19 | 1 | -1/+5 |
| | |||||
* | Piers' latest version -- authentication added by Donn Cave. | Guido van Rossum | 1998-06-18 | 1 | -41/+175 |
| | |||||
* | In class _Subfile, make sure read(n) can't read beyond EOF. Also | Guido van Rossum | 1998-06-17 | 1 | -2/+5 |
| | | | | | allow negative numbers to specify read until EOF (like for a regular file's read() method). | ||||
* | Add __getitem__ to AddressList object, to make it a sequence. | Guido van Rossum | 1998-06-16 | 1 | -0/+4 |
| | |||||
* | Some extra comments and docstrings, and a new class (AddressList), all by ESR. | Guido van Rossum | 1998-06-16 | 1 | -1/+48 |
| | |||||
* | Fixed the UDP server -- this never worked. Ray Loyzaga deserves | Guido van Rossum | 1998-06-16 | 1 | -2/+7 |
| | | | | credit for complaining about this and for testing these changes. | ||||
* | In completer(), return None instead of raising an IndexError when | Guido van Rossum | 1998-06-12 | 1 | -1/+4 |
| | | | | | there are no more completions left. (This for compatibility with Donald Beaudry's code.) | ||||
* | Don't catch interrupts in getpass() -- the finally clause will reset | Guido van Rossum | 1998-06-12 | 1 | -2/+3 |
| | | | | | | | the tty and the caller can deal with the interrupt. In the windows version, recognize ^C and raise KeyboardInterrupt (not sure if this is needed, but can't hurt). | ||||
* | Use the getpass module instead of having platform-specific echo on/off | Guido van Rossum | 1998-06-12 | 1 | -18/+5 |
| | | | | code here. | ||||
* | With the recent change that makes numbers compare smaller than anything, | Guido van Rossum | 1998-06-11 | 1 | -3/+3 |
| | | | | the outcome of the test for max has changed. | ||||
* | Now that test_MimeWriter is untabified, do the same here! | Guido van Rossum | 1998-06-11 | 1 | -15/+15 |
| | |||||
* | Be more careful than the previous patch. The default content-type | Guido van Rossum | 1998-06-11 | 1 | -1/+4 |
| | | | | | | should only be set to application/x-www-form-urlencoded when the method is POST. E.g. for PUT, an empty default (defaulting to text/plain later) makes more sense. | ||||
* | Support new overridable method, isheader() (ESR). | Guido van Rossum | 1998-06-11 | 1 | -24/+48 |
| | | | | Also implement __setitem__(), more-or-less correctly (GvR). | ||||
* | Some changes suggested/provided by Eric Raymond: | Guido van Rossum | 1998-06-10 | 1 | -7/+52 |
| | | | | | | | | | | | | | - explain seekable - when seekable==1, test fp.tell() and set it to 0 if that fails - support overridable method iscomment(line) to weed out comments - check for unread() method on file object before trying to seek And one of my own: - Add a get() method which behaves like a dictionary's get(); this is actually implemented by giving getheader() an optional second argument to specify the default, and aliasing get to getheader. | ||||
* | Add the __doc__ string from the original module on copy_none(). | Guido van Rossum | 1998-06-09 | 1 | -1/+3 |
| | |||||
* | Default content-type to application/x-www-form-urlencoded at the top | Guido van Rossum | 1998-06-09 | 1 | -1/+1 |
| | | | | | level of a form. This means that browsers that omit the content-type header when sending a POST command aren't penalized so heavily. | ||||
* | Changed runs of 8 spaces to tab -- to satisfy the tab nanny. | Guido van Rossum | 1998-06-09 | 1 | -7/+7 |
| | |||||
* | Untabified -- to satisfy the tab nanny. | Guido van Rossum | 1998-06-09 | 2 | -230/+230 |
| | |||||
* | Get rid of tabnanny's last complaints. | Guido van Rossum | 1998-06-09 | 1 | -3/+3 |
| | |||||
* | From: "Tim Peters" <tim_one@msn.com> | Guido van Rossum | 1998-06-09 | 1 | -3/+9 |
| | | | | | | | | | | The 1.5.1 tabnanny.py suffers an assert error if fed a script whose last line is both indented and lacks a newline: if 1: print 'oh fudge' # no newline here: The attached version repairs that. | ||||
* | getint() now raises ValueError, not TclError, on errors. | Guido van Rossum | 1998-06-09 | 1 | -2/+2 |
| |