summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Added available() method, which checks whether quicktime is installed at all (byJack Jansen1999-08-042-0/+104
| | | | testing whether EnterMovies points to an actual routine or is a null pointer).
* Change the directory tree walking example to use clearer variableGuido van Rossum1999-08-031-11/+14
| | | | names, some suggested by Joe Ellsworth.
* It turns out that modifying the environment strings is not safe.Guido van Rossum1999-08-031-6/+16
| | | | | | Treat them as read-only, and make a copy as appropriately. This was first reported by Bill Janssend and later by Craig Rowland and Ron Sedlmeyer. This fix is mine.
* Re-write in Python for portability. About 30% slower, but who cares?!Fred Drake1999-08-031-26/+61
|
* remap_element_names(): Only used for things that the new conversionFred Drake1999-08-031-32/+6
| | | | | | | | | | | | | | engine in latex2esis.py can do, so discard it. paragraph detection & markup: Handle some of the list-like environments properly, picking up paragraphs inside list items. (Only changed a few element-sets used for recognition.) fixup_refmodindexes_chunk(): Use the right attribute to determine the module a <ref*modindex/> element is referring to. convert(): Don't call remap_element_names(); it was removed.
* The new conversion engine supports more of the table re-writing thanFred Drake1999-08-031-6/+9
| | | | the old one, so use it.
* Removed PyMapping_Clear() -- it was wishful thinking and serves noGuido van Rossum1999-08-021-6/+0
| | | | great purpose.
* Use the mksourcepgk script instead of mktarball.sh.Fred Drake1999-08-021-6/+7
|
* Remove obsolete version of script.Fred Drake1999-08-021-84/+0
|
* Re-implementation of mktarball.sh as a more portable Python script;Fred Drake1999-08-021-0/+139
| | | | | | | | | with a more descriptive name. Allow creation of multiple archive formats with a single pass; useful in this case since it uses a fresh export/checkout from CVS to ensure that the tree is "clean" (no build turds, saved files, &c). Use --all to create all supported formats.
* bwrite(), ewrite(): Helpers for diagnostic output; essentially theFred Drake1999-08-021-30/+61
| | | | | | | | | | | | | | | | | | | | | | | | | same as sys.stderr.write(), but bwrite() will make it bold if stderr is a tty (for visibility). Use these everywhere instead of accessing sys.stderr.write() directly. find_all_child_elements(): Find all elements by type name that are immediate children of another. cleanup_synopses(): Receive both the document and fragment objects as parameters; if only the document is passed, synopsis information is never found since it's in the fragment! build_para(): Add a chunk of code to ensure that a newline always follows the </para> end-tag. Not really important, but makes presentation consistent for authoring/ maintenance. fixup_bifuncindexes_chunk(): Use find_all_child_elements() instead of find_all_elements() so we don't work with too many levels at once; that could cause DOM exceptions with the <elem>.removeChild() method.
* Mostly minor changes.Fred Drake1999-08-021-52/+23
| | | | | | | | | Removed some obsolete commented-out code. Merged BaseConversion into Conversion since there's only one conversion process now. Remove push/pop of output stream; it's no longer needed.
* This doesn't need to do nearly as much for the new conversion, soFred Drake1999-08-021-24/+0
| | | | simplify.
* A few small improvements to the conversion.Fred Drake1999-08-021-3/+7
|
* Markup nits.Fred Drake1999-08-021-40/+33
| | | | | Adjust examples to use the object interface instead of the function interface.
* Fixed hyperlink references to the __builtin__ and __main__ modules;Fred Drake1999-08-021-2/+2
| | | | error reported by Dale Nagata <DNagata@creo.com>.
* Mark Hammond writes:Guido van Rossum1999-07-303-3/+9
| | | | | | | | | | | | | | | | """ If the filename being complained about contains a space, enclose the file-name in quotes. The reason is simply that when I try and parse tabnanny's output, filenames with spaces make it very difficult to determine where the filename stops and the linenumber begins! """ Tim approves. I slightly changed the patch (use 'in' instead of string.find()) and arbitrarily bumped the __version__ variable up to 6.
* Remove some redundant code from Canvas.tag_bind(), which added allGuido van Rossum1999-07-301-11/+2
| | | | | | | | | | bindings to a dictionary _tagcommands which was otherwise unused. (This was checked in accidentally with rev. 1.125 and not deleted with rev. 1.127 when the other half of this code was removed -- although even as originally checked in the _tagcommands variable was never used.) (PR#40, reported by Peter Stoehr)
* Ripped out the old conversion.Fred Drake1999-07-291-367/+7
|
* Added a few more passes through the document fragment. Not actuallyFred Drake1999-07-291-11/+126
| | | | very interesting.
* Massive changes.Fred Drake1999-07-291-38/+478
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Separate the Conversion class into a base and a subclass; the subclass is pretty minimal but the separation is useful for.... NewConversion: New class that implements a somewhat different approach to the conversion. This uses a table of instances (rather than tuples) that have more information than the tuples used for the older conversion procedure. This allows a lot more control over the conversion, and it seems to be pretty stable. TableEntry, Parameter: New classes that are used to build the conversion specification used by NewConversion. TableParser: xmllib.XMLParser subclass that builds a conversion specification from an XML document. load_table(): Convenience function that loads a table from a file. main(): Added flags --new and --old; these select which conversion is used. The default is --new. Several fixes have been made in the old conversion as well; these were done before writing & switching to the new conversion, and should be archived. The next checkin of this file will discard the old conversion; is is kept in this checkin to allow it to be retrieved if needed, and to avoid lossing the bugfixes that have been made to it in the interim.
* Minor updates.Fred Drake1999-07-291-4/+8
|
* Use the (new) buildFragment() method of the EsisBuilder rather thanFred Drake1999-07-291-15/+1
| | | | implementing it all here.
* Some minor cleanup.Fred Drake1999-07-291-20/+18
|
* Conversion specification, used by a new path through latex2esis.py.Fred Drake1999-07-291-0/+631
| | | | | The specific markup conversion is coded here instead of an even more cryptic table in the code of latex2esis.py.
* Minor update.Fred Drake1999-07-291-3/+6
|
* Change an {\em ...} to \var{...} and a {\bf ...} to \program{...} (theFred Drake1999-07-291-1/+1
| | | | | | | new markup makes sense in context). These allow the SGML/XML conversion updates to work, & should not have still been in there anyway.
* A few minor Customize changes:Barry Warsaw1999-07-281-3/+6
| | | | | | | (python): Set defgroup :prefix to "py-" to make variable names cleaner. (py-jpython-command, py-jpython-command-args): Set :tag for proper capitalization of JPython in variable name display.
* (python-mode): Set which interpreter (CPython or JPython) to use theBarry Warsaw1999-07-281-18/+21
| | | | | | | | | | | | | | | | | first time a py buffer is visited during the Emacs session. This ensures that py-which-shells is initialized and also guarantees that the mode lines reflect the correct shell. First bug found by GvR, second one has long bugged :) me. (py-toggle-shells): Programmatically, arg can also take the symbols `cpython' or `jpython', which makes it easy to call with the value of py-default-interpreter. (py-shell): Don't need to initialize py-which-* variables since these will guarantee to be initialized by python-mode when the first py buffer is visited. (py-default-interpreter): Update docstring.
* Another patch from Andy Dustman:Guido van Rossum1999-07-281-1/+8
| | | | | | | | | | | | | | """ Here's a patch for the ForkingMixIn which will prevent the server from forking itself into the ground. Note: I've tested a very similar patch (subclassed ForkingMixIn) but not actually tested this one. As you might surmise, this was done out of necessity... If the maximum number of children are already running, block while waiting for a child to exit. """ (I added that last sentence as a comment to the code --GvR.)
* (py-beginning-of-def-or-class): Only move to match-beginning if theBarry Warsaw1999-07-271-2/+2
| | | | regex match actually succeeded!
* Add support for bzip2 compression.Fred Drake1999-07-271-2/+30
| | | | | New target: distfiles, create all distribution archives, regardless of archive format. (Individual targets remain for each archive format.)
* Add support for bzip2 using --bzip2.Fred Drake1999-07-271-4/+11
|
* Ignore additional compressed formats.Fred Drake1999-07-271-0/+2
|
* Added description of optional parameter to UserDict constructor.Fred Drake1999-07-261-2/+5
| | | | Omission reported by Barry Warsaw.
* Add zip archive support for html, pdf, ps, and latex archives.Fred Drake1999-07-231-1/+22
| | | | "zips" target produces all possible .zip files.
* Add --zip parameter; make this able to produce .zip files as well asFred Drake1999-07-231-3/+20
| | | | .tgz files.
* getsize(), getatime(), getmtime():Fred Drake1999-07-231-3/+3
| | | | | | | Constants from stat module were imported using "import *"; don't access them via stat.ST_*! Reported by that other vR. ;-)
* Update getattr() description to document the optional thirdFred Drake1999-07-221-5/+7
| | | | parameter. Thanks to Barry Warsaw for pointing out the oversight.
* Make the default target xml instead of sgml.Fred Drake1999-07-221-2/+2
|
* Make the default target xml instead of sgml.Fred Drake1999-07-221-2/+4
| | | | | | Use a temporary file to pass results from latex2esis.py to docfixer.py; this makes for better error detection by make (if the first pipeline stage fails, make wasn't catching it).
* typo: privide --> provideFred Drake1999-07-201-1/+1
| | | | Reported by Nadim Ghaznavi <nadim@ghaznavi.com>.
* Fixed order of parameters in slice() docstring. The Library ReferenceFred Drake1999-07-191-1/+1
| | | | had it right! Reported by Tim Hochberg <tim.hochberg@ieee.org>.
* New wishes.Guido van Rossum1999-07-151-1/+5
|
* Add test case for bug just fixed by Stephen Turner.Guido van Rossum1999-07-131-0/+11
|
* Patch by Stephen Turner, who writes:Guido van Rossum1999-07-131-18/+27
| | | | | | | | | | | | | | | | | | | | | | | """ It fixes a memory corruption error resulting from BadPickleGet exceptions in load_get, load_binget and load_long_binget. This was initially reported on c.l.py as a problem with Cookie.py; see the thread titled "python core dump (SIGBUS) on Solaris" for more details. If PyDict_GetItem(self->memo, py_key) call failed, then py_key was being Py_DECREF'd out of existence before call was made to PyErr_SetObject(BadPickleGet, py_key). The bug can be duplicated as follows: import cPickle cPickle.loads('garyp') This raises a BadPickleGet exception whose value is a freed object. A core dump will soon follow. """ Jim Fulton approves of the patch.
* Mark Favas was quick to note that the last checkin divides by zeroGuido van Rossum1999-07-131-1/+1
| | | | | when n == 0... So divide by a->ob_size instead which was already tested for 0.
* Appropriate overflow checks so that things like sys.maxint*(1,) can'tGuido van Rossum1999-07-121-3/+13
| | | | dump core.
* added a test for "To: :" patchBarry Warsaw1999-07-121-0/+7
|
* AddrlistClass.getaddress(): when parsing `:'s, in the loop, watch outBarry Warsaw1999-07-121-1/+2
| | | | | | for gotonext() pushing self.pos past the end of the string. This can happen if the message has a To field like "To: :" and you call msg.getaddrlist('to').