[Python-3000-checkins] r63200 - in python/branches/py3k: Doc/howto/functional.rst Doc/library/collections.rst Doc/library/datetime.rst Doc/library/json.rst Doc/library/modulefinder.rst Doc/library/plistlib.rst Doc/library/sched.rst Doc/library/so

Benjamin Peterson musiccomposition at gmail.com
Tue May 13 14:51:28 CEST 2008


On Mon, May 12, 2008 at 11:55 PM, neal.norwitz
<python-3000-checkins at python.org> wrote:
> Author: neal.norwitz
>  Date: Tue May 13 06:55:24 2008
>  New Revision: 63200
>
>  Log:
>  Convert a lot of print statements to print functions in docstrings,
>  documentation, and unused/rarely used functions.
>
>  Modified: python/branches/py3k/Doc/tools/sphinxext/patchlevel.py
>  ==============================================================================
>  --- python/branches/py3k/Doc/tools/sphinxext/patchlevel.py      (original)
>  +++ python/branches/py3k/Doc/tools/sphinxext/patchlevel.py      Tue May 13 06:55:24 2008
>  @@ -63,9 +63,10 @@
>          return get_header_version_info('.')
>      except (IOError, OSError):
>          version, release = get_sys_version_info()
>  -        print >>sys.stderr, 'Can\'t get version info from Include/patchlevel.h, ' \
>  -              'using version of this interpreter (%s).' % release
>  +        print('Can\'t get version info from Include/patchlevel.h, '
>  +              'using version of this interpreter (%s).' % release,
>  +              file=sys.stderr)
>          return version, release
>
>   if __name__ == '__main__':
>  -    print get_header_version_info('.')[1]
>  +    print(get_header_version_info('.')[1])

Please note that Sphinx (patchlevel.py) runs on Python 2.5 so this won't cut it.


-- 
Cheers,
Benjamin Peterson
"There's no place like 127.0.0.1."


More information about the Python-3000-checkins mailing list