| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Not sure this is better in all cases.
parse(): Fixed a bug in the output; the dict is referred to in the
code as `countries' not `country'. Also added no-case-fold for the
string "U.S." since the Virgin Islands name no longer wraps those in
parentheses.
main(): Fixed the argument parsing to agree with the docstring, i.e.
--outputdict instead of --output.
In the module docstring:
- updated my email address
- we don't need to explain about Python 1.5 regexps <wink>
We also don't need to wrap the import of re with a try/except.
Other style fixes:
- untabification
- revert back to <> style everywhere (and consistently)
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This patch replaces string module functions with string
methods in the Tools/world/world scripts.
It also updates two outdated URLs and the countrycodes
dictionary.
It fixes a bug where result of string.find() was checked
for truth instead of compared with -1.
It also replaces <> with != in two spots.
|
|
|
|
|
|
| |
This uses cgi.parse_header() in Checker.checkforhtml(), so that
webchecker recognises the mime type text/html even if options
are specified.
|
|
|
|
| |
allow subclassing.
|
| |
|
|
|
|
| |
is Control-A rather than Alt-A.
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
Assorted crashes on Windows and Linux when trying to display a very
long calltip, most likely a Tk bug. Wormed around by clamping the
calltip display to a maximum of 79 characters (why 79? why not ...).
Bugfix candidate, for all Python releases.
|
|
|
|
|
|
|
|
| |
pymalloc, apparently. Fixed, but this means all bgen-generated modules will
have to be re-generated.
I hope (and expect) that the pymalloc fixes aren't bugfix candidates, because
if they are this is one too.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The problem was that an exception can occur in the text.get() call or
in the write() call, when the text buffer contains non-ASCII
characters. This causes the previous contents of the file to be lost.
The provisional fix is to call str(self.text.get(...)) *before*
opening the file, so that if the exception occurs, we never open the
file.
Two orthogonal better solutions have to wait for policy decisions:
1. We could try to encode the data as Latin-1 or as UTF-8; but that
would require IDLE to grow a notion of file encoding which requires
more thought.
2. We could make backups before overwriting a file. This requires
more thought because it needs to be fast and cross-platform and
configurable.
|
| |
|
|
|
|
| |
- Added a debug class variable to enable parser debugging.
|
|
|
|
| |
or v.v.
|
| |
|
|
|
|
|
|
|
| |
Fixed a few compiler warnings.
freeze.py now produces binaries which can import shared
modules (unlike before).
|
|
|
|
| |
mentioned in the library reference manual
|
| |
|
|
|
|
| |
the time...)
|
|
|
|
|
|
| |
notably FSSpec and FSRef objects. First half of fix for #531291.
2.2.1 candidate.
|
| |
|
| |
|
|
|
|
| |
missing call to self.canonic().
|
|
|
|
| |
2.2.1 candidate.
|
|
|
|
|
|
| |
Reindenter.run(): copy over initial all-whitespace lines (if any, and
after normalizing to remove trailing blanks and tabs).
Bugfix candidate.
|
|
|
|
|
| |
Added a bunch of command line options to make the script more
generic.
|
| |
|
|
|
|
| |
Bugfix candidate: the current state of AutoIdent.py should be in 2.2.1.
|
|
|
|
|
|
|
| |
indent error
Use // where int division is intended. (This breaks IDLE for use with
previous Python versions -- I don't care.)
|
|
|
|
| |
Bugfix candidate!
|
|
|
|
| |
desired, especially because of poor unicode support in PyArg_ParseTuple.
|
| |
|
|
|
|
|
| |
- Converted the templates to use ANSI C prototypes (finally!)
- Use re in stead of deprecated regex
|
| |
|
|
|
|
| |
Jack: I hope I didn't break anything for you!
|
|
|
|
|
|
| |
The cause seems to be that when a file URL doesn't exist,
urllib.urlopen() raises OSError instead of IOError. Simply add this
to the except clause. Not elegant, but effective. :-)
|
|
|
|
| |
(through the new setmodulename() method). If the module name has been set the object generators output it as part of the tp_name field for the object type.
|
| |
|
| |
|
|
|
|
| |
(Not sure if this is legal according to the Google terms of service. :-)
|
|
|
|
| |
changes from start of branch upto r22b2 were already merged, of course).
|
|
|
|
| |
the usage docs: (a) align properly, (b) explain properly.
|
|
|
|
| |
by Thomas Heller (patch 459442).
|
|
|
|
| |
generating Waste.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
(With slight cosmetic improvements to shorten lines and a grammar fix
to a docstring.)
This addes -X and -E options to freeze. From the docstring:
-X module Like -x, except the module can never be imported by
the frozen binary.
-E: Freeze will fail if any modules can't be found (that
were not excluded using -x or -X).
|
| |
|
| |
|
|
|
|
|
|
|
| |
The strerror attribute contained only partial information about the
exception and produced some very confusing error messages. By passing
err (the exception object itself) and letting it convert itself to a
string, the error messages are better.
|