Skip to content

Commit e68cb15

Browse files
DougSmythiesrafaeljw
authored andcommitted
tools/power/x86/intel_pstate_tracer: python minimum version
Change the minimum python version from 2.7 to 3.6. Remove a 2.X backwards compatibility line. Signed-off-by: Doug Smythies <[email protected]> Acked-by: Srinivas Pandruvada <[email protected]> Reviewed-by: Mario Limonciello <[email protected]> Tested-by: Swapnil Sapkal <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent ce9ecca commit e68cb15

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tools/power/x86/intel_pstate_tracer/intel_pstate_tracer.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22
# SPDX-License-Identifier: GPL-2.0-only
33
# -*- coding: utf-8 -*-
44
#
@@ -11,19 +11,19 @@
1111
and generates performance plots.
1212
1313
Prerequisites:
14-
Python version 2.7.x or higher
14+
Python version 3.6.x or higher
1515
gnuplot 5.0 or higher
16-
gnuplot-py 1.8 or higher
16+
python3-gnuplot 1.8 or higher
1717
(Most of the distributions have these required packages. They may be called
18-
gnuplot-py, phython-gnuplot or phython3-gnuplot, gnuplot-nox, ... )
18+
gnuplot-py, python-gnuplot or python3-gnuplot, gnuplot-nox, ... )
1919
2020
HWP (Hardware P-States are disabled)
2121
Kernel config for Linux trace is enabled
2222
2323
see print_help(): for Usage and Output details
2424
2525
"""
26-
from __future__ import print_function
26+
2727
from datetime import datetime
2828
import subprocess
2929
import os
@@ -562,7 +562,7 @@ def signal_handler(signal, frame):
562562

563563
# Temporary (or perhaps not)
564564
cur_version = sys.version_info
565-
print('python version (should be >= 2.7):')
565+
print('python version (should be >= 3.6):')
566566
print(cur_version)
567567

568568
# Left as "cleanup" for potential future re-run ability.

0 commit comments

Comments
 (0)