summaryrefslogtreecommitdiffstats
path: root/Tools
Commit message (Collapse)AuthorAgeFilesLines
* staticforward bites the dust.Jeremy Hylton2002-07-172-3/+3
| | | | | | | | | | | | | | | The staticforward define was needed to support certain broken C compilers (notably SCO ODT 3.0, perhaps early AIX as well) botched the static keyword when it was used with a forward declaration of a static initialized structure. Standard C allows the forward declaration with static, and we've decided to stop catering to broken C compilers. (In fact, we expect that the compilers are all fixed eight years later.) I'm leaving staticforward and statichere defined in object.h as static. This is only for backwards compatibility with C extensions that might still use it. XXX I haven't updated the documentation.
* Added the "weird" ccTLDs ac, gg, im, and je. These are not recognizedBarry Warsaw2002-07-151-5/+17
| | | | | | by ISO 3166 as country codes, but the are reserved by IANA nonetheless. The commonly used uk ccTLD is part of this group, near as I can tell.
* Update freeze to use zlib 1.1.4.Mark Hammond2002-07-031-2/+2
| | | | From patch: [ 574532 ] Update freeze to use zlib 1.1.4
* Patch 574531/Bug 574570 - allow freeze on windows to use the _winregMark Hammond2002-06-281-1/+5
| | | | extension.
* Mechanically translated string method calls to string methods.Fred Drake2002-06-181-36/+22
| | | | | Instead of splitting a string and looping over it to call s.split(), use list comprehensions for readability.
* SF patch #552837, submitted by Robert Pyron:Fred Drake2002-06-181-29/+508
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Patch #488073: AtheOS port.Martin v. Löwis2002-06-111-0/+2
|
* Remove the only use of a string method.Thomas Heller2002-06-101-1/+1
| | | | Fixes SF 564840.
* Add primitive printing support for Unix and Windows.Guido van Rossum2002-06-105-0/+38
|
* escape 8-bit chars when generating .py files. fixes bug #566302Just van Rossum2002-06-091-1/+16
|
* Added the 7 new top level domains, and reworded the nameorgs output.Barry Warsaw2002-06-071-113/+110
| | | | | | | | | | | | | | | | | | | | | | | | 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)
* Apply diff2.txt from SF patch http://www.python.org/sf/565471Walter Dörwald2002-06-071-35/+31
| | | | | | | | | | | | | 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.
* Apply diff.txt from SF patch http://www.python.org/sf/561478Walter Dörwald2002-06-061-1/+2
| | | | | | This uses cgi.parse_header() in Checker.checkforhtml(), so that webchecker recognises the mime type text/html even if options are specified.
* Use self.__class__ to instantiate a TreeNode item recursively, toGuido van Rossum2002-05-271-1/+1
| | | | allow subclassing.
* Patch 543222. Disable script bindings in shell window.Raymond Hettinger2002-05-213-0/+5
|
* Patches 558535. The standard Windows binding for Edit Select AllRaymond Hettinger2002-05-211-1/+1
| | | | is Control-A rather than Alt-A.
* moving into the Doc/tools directorySkip Montanaro2002-04-301-128/+0
|
* Converted to use re in stead of regex and regsub (finally:-).Jack Jansen2002-04-231-54/+65
|
* SF bug 546078: IDLE calltips cause application error.Tim Peters2002-04-221-0/+6
| | | | | | | | 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.
* Oops: we used PyMem_DEL() to clean up objects, and that's a problem sinceJack Jansen2002-04-191-1/+1
| | | | | | | | 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.
* Use md5.new() constructorAndrew M. Kuchling2002-04-171-1/+1
|
* Use 2.1's .hexdigest() methodAndrew M. Kuchling2002-04-171-5/+2
|
* Provisional fix for writefile() [SF bug # 541730].Guido van Rossum2002-04-151-1/+1
| | | | | | | | | | | | | | | | | | | | 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.
* Patch #540583: Open MS Help Docs if available.Martin v. Löwis2002-04-141-3/+12
|
* - Added support for inherent pointer types (typedefs of arrays)Jack Jansen2002-04-121-0/+34
| | | | - Added a debug class variable to enable parser debugging.
* Give type name when complaining about using input-only type for outputJack Jansen2002-04-121-2/+2
| | | | or v.v.
* Convert a pile of obvious "yes/no" functions to return bool.Tim Peters2002-04-046-23/+23
|
* Updated freeze.py to the new Makefile symbol layout.Marc-André Lemburg2002-04-044-6/+4
| | | | | | | Fixed a few compiler warnings. freeze.py now produces binaries which can import shared modules (unlike before).
* new script - helps track down symbols exported by modules but notSkip Montanaro2002-03-281-0/+128
| | | | mentioned in the library reference manual
* operate as a filter when no files or directories appear on the command lineSkip Montanaro2002-03-261-9/+17
|
* use -kb on idle/Icons/minusnode.gif ("cvs up" kept checking it out allFredrik Lundh2002-03-181-0/+0
| | | | the time...)
* Some structures should be passed to Py_BuildValue by reference, not by value,Jack Jansen2002-03-182-2/+10
| | | | | | notably FSSpec and FSRef objects. First half of fix for #531291. 2.2.1 candidate.
* Patch #512466: Script to move faqwiz entries.Martin v. Löwis2002-03-182-0/+50
|
* [Bug #512799] urllib.splittype() returns a 2-tuple. (Reported by seb bacon)Andrew M. Kuchling2002-03-081-1/+1
|
* Fix by Edward K Ream to make breakpoints work on Windows: insert aGuido van Rossum2002-02-251-0/+1
| | | | missing call to self.canonic().
* Patch #520483: Make IDLE OutputWindow handle Unicode.Martin v. Löwis2002-02-231-1/+1
| | | | 2.2.1 candidate.
* SF bug #497839: reindent chokes on empty first lines.Tim Peters2002-02-171-0/+4
| | | | | | Reindenter.run(): copy over initial all-whitespace lines (if any, and after normalizing to remove trailing blanks and tabs). Bugfix candidate.
* Added a module docstring, which doubles as the --help text.Barry Warsaw2002-02-081-16/+81
| | | | | Added a bunch of command line options to make the script more generic.
* www.google.com is better than google.com.Guido van Rossum2002-02-081-1/+1
|
* smart_backspace_event(): remove now-pointless int() call.Tim Peters2002-01-231-1/+1
| | | | Bugfix candidate: the current state of AutoIdent.py should be in 2.2.1.
* Properly fix SF bug #507298 (Gregor Lingl): shellpython2.2 -Qnew smartGuido van Rossum2002-01-232-3/+3
| | | | | | | indent error Use // where int division is intended. (This breaks IDLE for use with previous Python versions -- I don't care.)
* classifyws(): Fix a "/" to work under -Qnew (as well as without it).Tim Peters2002-01-231-1/+1
| | | | Bugfix candidate!
* Added some support for Uicode arguments. Still leaves something to be ↵Jack Jansen2002-01-013-1/+23
| | | | desired, especially because of poor unicode support in PyArg_ParseTuple.
* Updated to current pathnames.Jack Jansen2002-01-011-3/+3
|
* Patches by Jens B. Jorgensen with small mods by me:Jack Jansen2001-12-2717-146/+60
| | | | | - Converted the templates to use ANSI C prototypes (finally!) - Use re in stead of deprecated regex
* Small change to allow for generation of QuickTime module for Windows.Jack Jansen2001-12-181-0/+4
|
* OSX tweak: recognize both EXTERN_API_C and EXTERN_API declarations.Just van Rossum2001-12-121-2/+2
| | | | Jack: I hope I didn't break anything for you!
* Fix SF bug #482171: webchecker dies on file: URLs w/o robots.txtGuido van Rossum2001-12-111-2/+2
| | | | | | 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. :-)
* The module generator now tells its object generators about the module name ↵Jack Jansen2001-12-092-1/+9
| | | | (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.
* Warning message about unfound file was missing trailing \n.Guido van Rossum2001-12-061-1/+2
|