| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
From patch: [ 574532 ] Update freeze to use zlib 1.1.4
|
|
|
|
| |
extension.
|
|
|
|
|
| |
Instead of splitting a string and looping over it to call s.split(),
use list comprehensions for readability.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
1. BUGFIX: In function makefile(), strip blanks from the nodename.
This is necesary to match the behavior of parser.makeref() and
parser.do_node().
2. BUGFIX fixed KeyError in end_ifset (well, I may have just made
it go away, rather than fix it)
3. BUGFIX allow @menu and menu items inside @ifset or @ifclear
4. Support added for:
@uref URL reference
@image image file reference (see note below)
@multitable output an HTML table
@vtable
5. Partial support for accents, to match MAKEINFO output
6. I added a new command-line option, '-H basename', to specify
HTML Help output. This will cause three files to be created
in the current directory:
`basename`.hhp HTML Help Workshop project file
`basename`.hhc Contents file for the project
`basename`.hhk Index file for the project
When fed into HTML Help Workshop, the resulting file will be
named `basename`.chm.
7. A new class, HTMLHelp, to accomplish item 6.
8. Various calls to HTMLHelp functions.
A NOTE ON IMAGES: Just as 'outputdirectory' must exist before
running this program, all referenced images must already exist
in outputdirectory.
FLD: wrapped some long lines.
|
| |
|
|
|
|
| |
Fixes SF 564840.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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. :-)
|