Repository :
http://git.fedorahosted.org/cgit/kernel-tests.git
On branch : master
---------------------------------------------------------------
commit ee59e49c39aaa8e861532855e126fa447c713820
Author: Craig Rodrigues <rodrigc(a)FreeBSD.org>
Date: Sat Nov 14 16:47:45 2015 -0800
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/
---------------------------------------------------------------
.../libhugetlbfs/libhugetlbfs/tests/run_tests.py | 4 ++--
1 files 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