From aa0067e32c9d02da61196723c1182940ca9601dd Mon Sep 17 00:00:00 2001 From: "Brian C. Lane" Date: Wed, 11 Oct 2017 10:27:52 -0700 Subject: [PATCH] Convert mk-s390-cdboot to python3 (#1497141) It was pulling in py2 along with py3. Fix #! and make sure code works with py3. --- src/bin/mk-s390-cdboot | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/bin/mk-s390-cdboot b/src/bin/mk-s390-cdboot index 38d5430a..8a0361c2 100755 --- a/src/bin/mk-s390-cdboot +++ b/src/bin/mk-s390-cdboot @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python3 # # mk-s390-cdboot # @@ -17,8 +17,6 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . # -from __future__ import print_function - import argparse import os import shutil @@ -96,7 +94,8 @@ def main(): if not os.path.exists(f): errors.append("ERROR: %s is missing" % f) if errors: - map(print, errors) + for e in errors: + print(e) sys.exit(1) print("Creating bootable CD-ROM image...")