[U-Boot] [PATCH v2 00/10] Python 3.x support for patman & dtoc

Paul Burton paul.burton at imgtec.com
Tue Sep 27 17:03:48 CEST 2016


This series makes patman & dtoc run on python 3.x, which allows them to
work without hacks on distributions where the python binary is python
3.x. All changes are made in a way that continue to work on python 2.x,
so both tools should work on either major version of python.

Paul Burton (10):
  patman: Replace tabs with spaces
  patman: Make print statements python 3.x safe
  patman: Make exception handling python 3.x safe
  patman: Import 'configparser' lower case to be  python 3.x safe
  patman: Decode stdout/stderr as utf8, be python 3.x safe
  patman: Use items() to iterate over dictionaries
  patman: Fix doctest StringIO import for python 3.x
  dtoc: Use items() to iterate over dictionaries in python 3.x
  dtoc: Decode strings for struct.unpack on python 3.x
  dtoc: Make integer division python 3.x safe

 tools/dtoc/dtoc.py              | 10 +++++-----
 tools/dtoc/fdt_fallback.py      |  2 +-
 tools/dtoc/fdt_util.py          |  3 +++
 tools/patman/checkpatch.py      | 16 ++++++++--------
 tools/patman/command.py         |  2 +-
 tools/patman/cros_subprocess.py |  6 +++---
 tools/patman/get_maintainer.py  |  2 +-
 tools/patman/gitutil.py         | 18 +++++++++---------
 tools/patman/patchstream.py     |  6 +++---
 tools/patman/patman.py          | 12 ++++++------
 tools/patman/series.py          | 42 +++++++++++++++++++++--------------------
 tools/patman/settings.py        | 37 ++++++++++++++++++++++--------------
 tools/patman/terminal.py        | 12 +++++++-----
 tools/patman/test.py            |  2 +-
 14 files changed, 93 insertions(+), 77 deletions(-)

-- 
2.10.0



More information about the U-Boot mailing list