diff options
author | Janne Blomqvist <jb@gcc.gnu.org> | 2019-05-21 09:59:16 +0300 |
---|---|---|
committer | Janne Blomqvist <jb@gcc.gnu.org> | 2019-05-21 09:59:16 +0300 |
commit | eaa6a39d4288fef9c322e8fe6c45e621b22cdf3f (patch) | |
tree | 0863773e2fa9f516c38664c52e7803704edec7a2 /gcc | |
parent | cb7ac91b12cc424680e47a65c05cecb6bb21ac7b (diff) | |
download | gcc-eaa6a39d4288fef9c322e8fe6c45e621b22cdf3f.zip gcc-eaa6a39d4288fef9c322e8fe6c45e621b22cdf3f.tar.gz gcc-eaa6a39d4288fef9c322e8fe6c45e621b22cdf3f.tar.bz2 |
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.
From-SVN: r271456
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions