From 168ff9ab82c45f39c3c91800bdb41ba15c93b47b Mon Sep 17 00:00:00 2001 From: Eitan Adler Date: Mon, 22 Oct 2012 02:12:02 +0000 Subject: [PATCH] Covert to python 3 Approved by: cperciva MFC after: 3 days --- tools/test/hwpmc/pmctest.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/test/hwpmc/pmctest.py b/tools/test/hwpmc/pmctest.py index 6495e6a5b398..fb4a97719466 100755 --- a/tools/test/hwpmc/pmctest.py +++ b/tools/test/hwpmc/pmctest.py @@ -68,14 +68,14 @@ def main(): (options, args) = parser.parse_args() if (options.program == None): - print "specify program, such as ls, with -p/--program" + print("specify program, such as ls, with -p/--program") sys.exit() p = subprocess.Popen(["pmccontrol", "-L"], stdout=PIPE) counters = p.communicate()[0] if len(counters) <= 0: - print "no counters found" + print("no counters found") sys.exit() for counter in counters.split(): @@ -84,10 +84,10 @@ def main(): p = subprocess.Popen(["pmcstat", "-p", counter, options.program], stdout=PIPE) result = p.communicate()[0] - print result + print(result) if (options.wait == True): try: - value = raw_input("next?") + value = input("next?") except EOFError: sys.exit()