summaryrefslogtreecommitdiff
path: root/piglit-resume.py
diff options
context:
space:
mode:
authorDylan Baker <baker.dylan.c@gmail.com>2014-02-24 11:42:38 -0800
committerDylan Baker <baker.dylan.c@gmail.com>2014-03-12 14:39:32 -0700
commitebae9e613976de548efb8c8e3de76f438ca94caf (patch)
tree012a3d2380327a6c286b01bcdd10ddfe153cea8d /piglit-resume.py
parentdc9345d0465609ceb32944b22eb6602831ba54bd (diff)
python: Convert from print statement to function
One of the biggest changes between python2 and python3 is that print changed from a statement to a function. This change was backported to python2 in the __future__ module, and this patch makes that conversation to ease the transition from python2 to python3. v2: - Replace dict comprehension with dict(generator). This is for python 2.6 compatability Signed-off-by: Dylan Baker <baker.dylan.c@gmail.com> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> (v1)
Diffstat (limited to 'piglit-resume.py')
-rwxr-xr-xpiglit-resume.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/piglit-resume.py b/piglit-resume.py
index 06bba4d62..c9cb72bbb 100755
--- a/piglit-resume.py
+++ b/piglit-resume.py
@@ -21,6 +21,7 @@
# OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
# DEALINGS IN THE SOFTWARE.
+from __future__ import print_function
import sys
import os
import os.path as path