[Fuego] [PATCH 0/8] Python 2 & 3 compatible work

[email protected] Wed, 20 Apr 2022 15:41:32 +0530
Newsgroups dev.linux.lists.fuego
Message-ID <[email protected]>
From: sireesha <[email protected]>

Dear Tim,

I'm sending below series of patches which are compatible for python 2 &
3.

Kindly review the changes and provide feedback.


Shivanand Kunijadar (5):
  Create mylong function as a compatible replacement for long()
  Use file descriptor instead of file.write()
  Use decode() to convert bytes to string in python3
  Use actual string name with replace() instead of string.replace()
  Replace cmp() function with equivalent expression

sireesha (3):
  ftc: Use text mode in file operation to make compatible with python3
  Fix TypeError: sort() takes no positional arguments in python3
  python2to3: use list() for dict.keys(), dict.values() and dict.items()

 scripts/check-dependencies           |  2 +-
 scripts/deorphan-runs.py             | 10 +++++++++-
 scripts/ftc                          | 16 ++++++++--------
 scripts/jdiff                        |  4 ++--
 scripts/ovgen.py                     | 20 ++++++++++----------
 scripts/parser/common.py             | 17 +++++++++--------
 scripts/parser/prepare_chart_data.py | 22 +++++++++++-----------
 tests/Functional.LTP/ltp_process.py  |  2 +-
 8 files changed, 51 insertions(+), 42 deletions(-)

-- 
2.20.1