From 1ac0d1f8feda7cbbe3e706074aebcc805e4f3667 Mon Sep 17 00:00:00 2001 From: Mike Gilbert Date: Tue, 3 Dec 2013 20:06:07 -0500 Subject: [PATCH] Replace print statement with sys.stdout.write for python3 compatibility --- ChangeLog | 5 +++++ gentpl.py | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 33206cd..5e1a088 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2013-12-04 Mike Gilbert + + * gentpl.py: Replace print statement with sys.stdout.write for + python3 compatibility. + 2013-12-03 Colin Watson * grub-core/Makefile.core.def (setjmp): Distribute diff --git a/gentpl.py b/gentpl.py index 1d4583c..9960c2d 100644 --- a/gentpl.py +++ b/gentpl.py @@ -19,6 +19,7 @@ __metaclass__ = type from optparse import OptionParser import re +import sys # # This is the python script used to generate Makefile.*.am @@ -434,7 +435,7 @@ def output(s, section=''): def write_output(section=''): for s in outputs.get(section, []): - print s, + sys.stdout.write(s) # # Global variables -- 1.8.4.4