gentpl.py: Use python3-style print function

This commit is contained in:
Mike Gilbert 2013-12-04 10:24:21 -05:00 committed by Colin Watson
parent b0f311f412
commit aa437b5890
3 changed files with 9 additions and 2 deletions

View file

@ -15,6 +15,8 @@
# You should have received a copy of the GNU General Public License
# along with GRUB. If not, see <http://www.gnu.org/licenses/>.
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