Ignore:
Timestamp:
07/23/17 13:06:08 (7 years ago)
Author:
obi
Message:

update python stuff

File:
1 edited

Legend:

Unmodified
Added
Removed
  • titan/mediathek/localhoster/lib/python2.7/idlelib/help.py

    r40094 r40658  
    1212(help.copy_strip)=> Lib/idlelib/help.html
    1313
    14 HelpParser - Parse help.html and and render to tk Text.
     14HelpParser - Parse help.html and render to tk Text.
    1515
    1616HelpText - Display formatted help.html.
     
    4646    The supplied text should have the needed tag configurations.
    4747    The behavior for unsupported tags, such as table, is undefined.
     48    If the tags generated by Sphinx change, this class, especially
     49    the handle_starttag and handle_endtags methods, might have to also.
    4850    """
    4951    def __init__(self, text):
     
    230232
    231233def copy_strip():
    232     "Copy idle.html to idlelib/help.html, stripping trailing whitespace."
     234    """Copy idle.html to idlelib/help.html, stripping trailing whitespace.
     235
     236    Files with trailing whitespace cannot be pushed to the hg cpython
     237    repository.  For 3.x (on Windows), help.html is generated, after
     238    editing idle.rst in the earliest maintenance version, with
     239      sphinx-build -bhtml . build/html
     240      python_d.exe -c "from idlelib.help import copy_strip; copy_strip()"
     241    After refreshing TortoiseHG workshop to generate a diff,
     242    check  both the diff and displayed text.  Push the diff along with
     243    the idle.rst change and merge both into default (or an intermediate
     244    maintenance version).
     245
     246    When the 'earlist' version gets its final maintenance release,
     247    do an update as described above, without editing idle.rst, to
     248    rebase help.html on the next version of idle.rst.  Do not worry
     249    about version changes as version is not displayed.  Examine other
     250    changes and the result of Help -> IDLE Help.
     251
     252    If maintenance and default versions of idle.rst diverge, and
     253    merging does not go smoothly, then consider generating
     254    separate help.html files from separate idle.htmls.
     255    """
    233256    src = join(abspath(dirname(dirname(dirname(__file__)))),
    234257               'Doc', 'build', 'html', 'library', 'idle.html')
Note: See TracChangeset for help on using the changeset viewer.