aboutsummaryrefslogtreecommitdiff
path: root/main.cpp.example
diff options
context:
space:
mode:
authorMarti Bolivar <mbolivar@leaflabs.com>2012-06-28 12:02:48 -0400
committerMarti Bolivar <mbolivar@leaflabs.com>2012-06-28 12:02:48 -0400
commit1c512b39ba4a05ff14cd346c2ae2fcc1beb6ecf3 (patch)
tree4409333457a43e9bdad2783679a255884c0286da /main.cpp.example
parent8f4d11a2a14a3439db100a83466217a15a1efead (diff)
reset.py: Use the real print function (requires Python 2.6+).
Use "from __future__ import print_function" so the recent py3k compatibility patches to reset.py preserve the old output in Python 2. This increases our minimum Python version to 2.6, but avoids ugly output Python 2, where print statements with a tuple argument print the tuple with parentheses etc. Python 2.6 came out almost four years ago, and it's widely available: - even on older Linux distros (e.g. Ubuntu 10.04 and Debian Squeeze have 2.6 default at time of writing), - on OS X since 10.6, - and Windows users will probably be installing from python.org anyway, so they've likely got a reasonably recent vintage. Dropping 2.5 support thus doesn't seem likely to cause problems. Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
Diffstat (limited to 'main.cpp.example')
0 files changed, 0 insertions, 0 deletions