| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
in the GNU readline history buffer which is not such a great idea.
|
|
|
|
|
|
| |
using "%d" % errno to print out IOError exceptions -- but urllib.py
raises exceptions where the errno slot in the exception tuple is a
string.
|
| |
|
|
|
|
|
| |
of mkdir(), rmdir() and rename() that make or remove intermediate
directories as well.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
involve a filesystem path. To that end:
- Changed IOError to EnvironmentError and added a hack which checks
for arg of len 3. When constructed with a 3-tuple, the third item
is the filename and this is squirreled away in the `filename'
attribute. However, for in-place unpacking backwards
compatibility, self.args still only gets the first two items. Added
a __str__() which prints the filename if it is given.
- IOError now inherits from EnvironmentError
- New class OSError which also inherits from EnvironmentError and is
used by the posix module.
|
|
|
|
|
|
|
|
| |
Fix the implementation of quote_plus(). (It wouldn't treat '+' in the
original data right.)
Add urlencode(dict) which is handy to create the data for sending a
POST request with urlopen().
|
|
|
|
| |
filename may be omitted.
|
|
|
|
| |
slightly different way to test for the existence of unread.
|
| |
|
|
|
|
| |
(which is not very relevant when you're in the debugger :-).
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
according to an idea by Harri Pasanen (but with different syntax).
This affects the 'break' and 'clear' commands and their help
functions. Also added a helper method lookupmodule().
Also:
- Try to import readline (important when pdb is used from/as a script).
- Get rid of reference to ancient __privileged__ magic variable.
- Moved all import out of functions to the top.
- When used as a script, check that the script file exists.
|
|
|
|
|
| |
onecmd(line) must return the value returned by emptyline() or
default(line).
|
| |
|
| |
|
|
|
|
|
|
|
| |
fp.tell() -- that won't work on Windows.
(A patch for rfc822 is still needed for one case where it finds a bad
header line and wants to back up.)
|
| |
|
|
|
|
|
|
|
|
| |
not calling self.search(); instead, call self.code.match() directly
and interpret the list of registers it returns directly. This saves
the overhead of instantiating a MatchObject for each hit, basically
inlining search() as well as group(). When a MatchObject is still
needed, one is allocated and reused for the duration of the scan.
|
|
|
|
|
| |
Added test for m.groups() with default.
Added a few prints announcing various tests in verbose mode.
|
| |
|
|
|
|
| |
before JPython 1.0 came out.)
|
|
|
|
|
|
|
|
|
|
| |
In the bbox method of Group (Canvas.py file), you should read
return self.canvas._getints(self._do('bbox'))
instead of
return self._getints(self._do('bbox'))
|
|
|
|
|
| |
extensions, and include the "." in ".pyc". Still need to get
_tkinter.c:Tkapp_New() to use baseName....
|
|
|
|
| |
by Carey Evans <c.evans@clear.net.nz>, for picky mail servers.
|
|
|
|
|
|
|
| |
(2) Made the test script a bit fancier -- you can now use it to run
arbitrary scripts in restricted mode, and it will do the right thing.
(The interactive mode is still pretty lame; should integrate this with
code.interact().)
|
|
|
|
| |
parse_endtag() was restructured in parse_endtag() and finish_endtag().
|
| |
|
| |
|
|
|
|
| |
don't put the seconds in the time!
|
|
|
|
| |
of 250 on a successful delete.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
|
|
|
| |
article() commands.
|
|
|
|
|
| |
should never be called, so this isn't really needed, but this
signifies that rexec now supports packages -- because ihooks does.
|
|
|
|
|
| |
didn't want to commit until it had been tested. I presume that it
works in Grail.)
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
| |
|
|
|
|
| |
the '%' should be put back in.
|
| |
|
| |
|
|
|
|
| |
function.
|
| |
|
|
|
|
| |
retrieve one or more URLs to stdout. Use -t to run the self-test.
|
|
|
|
|
| |
changes, and made only a few minor changes. No changes of my own this
time.
|
|
|
|
| |
in comments and doc strings.
|
|
|
|
|
| |
possible to use this in PythonWin, and to replace Fredrik Lundh's
PythonInterpreter class. Fredrik is credited with the class' API.
|
| |
|