From fb692da3979a13fe7c7dd41cba6fba91d0193366 Mon Sep 17 00:00:00 2001 From: eadler Date: Mon, 22 Oct 2012 02:12:02 +0000 Subject: Covert to python 3 Approved by: cperciva MFC after: 3 days --- tools/test/hwpmc/pmctest.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tools/test') diff --git a/tools/test/hwpmc/pmctest.py b/tools/test/hwpmc/pmctest.py index 6495e6a..fb4a977 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() -- cgit v1.1