From: W. Trevor King Date: Sun, 30 Dec 2012 17:51:49 +0000 (-0500) Subject: swc-installation-test-2.py: import print_function for Python 2.6 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=d8c2d47807bfa739bbab1c14bf7e9c208d0fe667;p=swc-workshop.git swc-installation-test-2.py: import print_function for Python 2.6 Otherwise `print()` actually prints `()`, where we want it to print a blank line. --- diff --git a/swc-installation-test-2.py b/swc-installation-test-2.py index a6a9a50..857385c 100755 --- a/swc-installation-test-2.py +++ b/swc-installation-test-2.py @@ -22,6 +22,8 @@ This script requires at least Python 2.6. You can check the version of Python that you have installed with 'swc-installation-test-1.py'. """ +from __future__ import print_function # for Python 2.6 compatibility + import distutils.ccompiler as _distutils_ccompiler import importlib as _importlib import logging as _logging