From a5d341e1d657f083390d0dea9def63baffc4e961 Mon Sep 17 00:00:00 2001 From: Craig Rodrigues Date: Sat, 14 Nov 2015 16:47:45 -0800 Subject: [PATCH 2/4] Use repr() instead of backticks. [PEP 3099] Backticks were removed as an alias for repr() in Python 3. See: https://www.python.org/dev/peps/pep-3099/ --- default/libhugetlbfs/libhugetlbfs/tests/run_tests.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/default/libhugetlbfs/libhugetlbfs/tests/run_tests.py b/default/libhugetlbfs/libhugetlbfs/tests/run_tests.py index dc676b6..e84e29d 100755 --- a/default/libhugetlbfs/libhugetlbfs/tests/run_tests.py +++ b/default/libhugetlbfs/libhugetlbfs/tests/run_tests.py @@ -216,7 +216,7 @@ def clear_hpages(): cleaned up automatically and must be removed to free up the huge pages. """ for mount in mounts: - dir = mount + "/elflink-uid-" + `os.getuid()` + dir = mount + "/elflink-uid-" + repr(os.getuid()) for root, dirs, files in os.walk(dir, topdown=False): for name in files: os.remove(os.path.join(root, name)) @@ -459,7 +459,7 @@ def setup_shm_sysctl(limit): sysctls[f] = fh.read() fh.close() fh = open(f, "w") - fh.write(`limit`) + fh.write(repr(limit)) fh.close() print("set shmmax limit to %s" % limit) return sysctls -- 2.6.0