Whamcloud - gitweb
EX-5644 utils: fix lpcc service dependency on lipe-lpcc
This patch makes changes to support python3 for lipe:
* The long() function is no longer supported by Python 3.
It only has one built-in integral type, named int().
* Octal literals are no longer of the form 0720 - use
0o720 instead.
* The print statement has been replaced with a print()
function, with keyword arguments to replace most of the
special syntax of the old print statement (PEP 3105).
* The dict.iterkeys(), dict.iteritems() and dict.itervalues()
methods are no longer supported - use dict.items() instead.
* The StringIO and StringIO modules are gone. Instead,
import the io module and use io.StringIO or io.BytesIO
for text and data respectively.
* The builtin basestring abstract type was removed.
Use str instead.
* Use string.ascii_lowercase instead of string.lowercase.
Test-Parameters: trivial testlist=sanity-lipe env=SANITY_EXCEPT="101j 130 244a"
Test-Parameters: clientdistro=el7.9 testlist=sanity-pcc
Test-Parameters: clientdistro=el8.6 testlist=sanity-pcc
Change-Id: Ia5a3b6490fd4cebbd40327d5b2a431590c82cf00
Signed-off-by: Alex Deiter <alex.deiter@gmail.com>
Reviewed-on: https://review.whamcloud.com/48149
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Jian Yu <yujian@whamcloud.com>
Reviewed-by: Feng, Lei <flei@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
29 files changed: