]> git.ipfire.org Git - thirdparty/gcc.git/commit - contrib/ChangeLog
Convert contrib/mklog script to Python 3
authorjb <jb@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 21 May 2019 06:59:16 +0000 (06:59 +0000)
committerjb <jb@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 21 May 2019 06:59:16 +0000 (06:59 +0000)
commit12e94bd265db3aae7780a6f84e544254a408f184
tree0863773e2fa9f516c38664c52e7803704edec7a2
parent0378b6d192ad9462078b61c39b87ac37f3280440
Convert contrib/mklog script to Python 3

Upstream will drop support for Python 2.x on January 1, 2020.  This
patch converts the contrib/mklog script to Python 3.  The process for
the conversion was as follows.

- Use the futurize tool (https://python-future.org ) to apply the
  print_with_import, except, and dict transformations.

- Remove the "from __future__ import print_function".

- Change the shebang line to search for python3 in the environment.

- Modify the run() function to return a str instead of bytes.

- Update the copyright year.

contrib/ChangeLog:

2019-05-21  Janne Blomqvist  <jb@gcc.gnu.org>

        * mklog: Convert to Python 3.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@271456 138bc75d-0d04-0410-961f-82ee72b054a4
contrib/ChangeLog
contrib/mklog