From aa437b58903b9927ee6cf2930a662d5503f14c90 Mon Sep 17 00:00:00 2001 From: Mike Gilbert Date: Wed, 4 Dec 2013 10:24:21 -0500 Subject: [PATCH] gentpl.py: Use python3-style print function --- ChangeLog | 5 +++++ INSTALL | 2 +- gentpl.py | 4 +++- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index c5dadaecc..c680ba1b5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2013-12-05 Mike Gilbert + + * INSTALL: Raise minimum python version to 2.6. + * gentpl.py: Use python3-style print function. + 2013-12-05 Vladimir Serbinenko * util/grub-install.c: Mention Boot* variable. diff --git a/INSTALL b/INSTALL index 7602323b1..b91d975c3 100644 --- a/INSTALL +++ b/INSTALL @@ -54,7 +54,7 @@ To build GRUB's graphical terminal (gfxterm), you need: If you use a development snapshot or want to hack on GRUB you may need the following. -* Python 2.5.2 or later +* Python 2.6 or later * Autoconf 2.60 or later * Automake 1.10.1 or later diff --git a/gentpl.py b/gentpl.py index 1d4583c68..02bf33523 100644 --- a/gentpl.py +++ b/gentpl.py @@ -15,6 +15,8 @@ # You should have received a copy of the GNU General Public License # along with GRUB. If not, see . +from __future__ import print_function + __metaclass__ = type from optparse import OptionParser @@ -434,7 +436,7 @@ def output(s, section=''): def write_output(section=''): for s in outputs.get(section, []): - print s, + print(s, end='') # # Global variables