summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* Put back the call to report_unbalanced() that was lost whenGuido van Rossum1998-07-071-0/+2
| | | | parse_endtag() was restructured in parse_endtag() and finish_endtag().
* Get rid of some obsolete opcodes.Guido van Rossum1998-07-071-5/+0
|
* The permissions ('mode' flag) should default to 0666.Guido van Rossum1998-07-031-1/+1
|
* The _fromlinepattern was a little too restrictive -- some sendmailsGuido van Rossum1998-07-021-1/+1
| | | | don't put the seconds in the time!
* According to Robin Dunn, at least one FTP server returns 200 insteadGuido van Rossum1998-07-021-1/+1
| | | | of 250 on a successful delete.
* Gotta have an __init__() method -- pdb.py calls it!Guido van Rossum1998-07-011-0/+2
|
* Several changes:Barry Warsaw1998-07-011-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 Rossum1998-06-301-0/+59
|
* Add pop method.Guido van Rossum1998-06-301-0/+1
|
* Fix the comments describing the return values of the head(), body(),Guido van Rossum1998-06-301-0/+6
| | | | article() commands.
* For completeness, add a dummy load_package() method to RHooks. ItGuido van Rossum1998-06-291-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 butGuido van Rossum1998-06-291-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 aGuido van Rossum1998-06-291-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 Rossum1998-06-291-17/+84
|
* # Make tabnanny happy.Guido van Rossum1998-06-291-3/+3
|
* Improved by Eric Raymond.Guido van Rossum1998-06-291-18/+29
|
* Oops! Of course, Tim is right -- when the item is not a hex number,Guido van Rossum1998-06-291-2/+2
| | | | the '%' should be put back in.
* Speed-up unquote(), inspired by post from Daniel Walton.Guido van Rossum1998-06-281-18/+16
|
* Remove RCS and #! cruft at top.Guido van Rossum1998-06-261-4/+0
|
* Allow binding a Tcl command (given as a string) as well as a PythonGuido van Rossum1998-06-251-3/+3
| | | | function.
* Treat "HEAD" same as "GET", so that CGI scripts won't fail.Guido van Rossum1998-06-251-1/+1
|
* Rewrite the (test) main program so that when used as a script, it canGuido van Rossum1998-06-251-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 myGuido van Rossum1998-06-251-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 typosGuido van Rossum1998-06-251-33/+113
| | | | in comments and doc strings.
* Subsume the interact() function in a class. This should make itGuido van Rossum1998-06-231-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 Rossum1998-06-231-1/+1
|
* Patch by Eric Raymond: add an optional 'seekable' flag to theGuido van Rossum1998-06-231-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 testGuido van Rossum1998-06-221-1/+1
| | | | for presence unread, not getattr()!
* Turns out that 'winfo id' returns the id as a hex string, with 0x prefix.Guido van Rossum1998-06-191-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 Rossum1998-06-191-1/+5
|
* Piers' latest version -- authentication added by Donn Cave.Guido van Rossum1998-06-181-41/+175
|
* In class _Subfile, make sure read(n) can't read beyond EOF. AlsoGuido van Rossum1998-06-171-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 Rossum1998-06-161-0/+4
|
* Some extra comments and docstrings, and a new class (AddressList), all by ESR.Guido van Rossum1998-06-161-1/+48
|
* Fixed the UDP server -- this never worked. Ray Loyzaga deservesGuido van Rossum1998-06-161-2/+7
| | | | credit for complaining about this and for testing these changes.
* In completer(), return None instead of raising an IndexError whenGuido van Rossum1998-06-121-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 resetGuido van Rossum1998-06-121-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/offGuido van Rossum1998-06-121-18/+5
| | | | code here.
* With the recent change that makes numbers compare smaller than anything,Guido van Rossum1998-06-111-3/+3
| | | | the outcome of the test for max has changed.
* Now that test_MimeWriter is untabified, do the same here!Guido van Rossum1998-06-111-15/+15
|
* Be more careful than the previous patch. The default content-typeGuido van Rossum1998-06-111-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 Rossum1998-06-111-24/+48
| | | | Also implement __setitem__(), more-or-less correctly (GvR).
* Some changes suggested/provided by Eric Raymond:Guido van Rossum1998-06-101-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 Rossum1998-06-091-1/+3
|
* Default content-type to application/x-www-form-urlencoded at the topGuido van Rossum1998-06-091-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 Rossum1998-06-091-7/+7
|
* Untabified -- to satisfy the tab nanny.Guido van Rossum1998-06-092-230/+230
|
* Get rid of tabnanny's last complaints.Guido van Rossum1998-06-091-3/+3
|
* From: "Tim Peters" <tim_one@msn.com>Guido van Rossum1998-06-091-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 Rossum1998-06-091-2/+2
|