[Python-3000-checkins] r63203 - python/branches/py3k/Doc/tools/sphinxext/patchlevel.py

Neal Norwitz nnorwitz at gmail.com
Wed May 14 07:23:07 CEST 2008


I don't understand why this was reverted.  In the future, it would be
good to add the reason in the commit message.

Since this is in the 3k branch, it seems like 3k should be able to
execute it.  I don't see any comments that suggest this file should
only be run older versions of python.  If it needs to run on both, 2.x
and 3.0, the code should be modified appropriately.

n

On Tue, May 13, 2008 at 5:56 AM, benjamin.peterson
<python-3000-checkins at python.org> wrote:
> Author: benjamin.peterson
> Date: Tue May 13 14:56:25 2008
> New Revision: 63203
>
> Log:
> revert syntax change
>
>
> Modified:
>   python/branches/py3k/Doc/tools/sphinxext/patchlevel.py
>
> 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 14:56:25 2008
> @@ -63,10 +63,9 @@
>         return get_header_version_info('.')
>     except (IOError, OSError):
>         version, release = get_sys_version_info()
> -        print('Can\'t get version info from Include/patchlevel.h, '
> -              'using version of this interpreter (%s).' % release,
> -              file=sys.stderr)
> +        print >>sys.stderr, 'Can\'t get version info from Include/patchlevel.h, ' \
> +              'using version of this interpreter (%s).' % release
>         return version, release
>
>  if __name__ == '__main__':
> -    print(get_header_version_info('.')[1])
> +    print get_header_version_info('.')[1]
> _______________________________________________
> Python-3000-checkins mailing list
> Python-3000-checkins at python.org
> http://mail.python.org/mailman/listinfo/python-3000-checkins
>


More information about the Python-3000-checkins mailing list