From 062f9ea5dd72587768b17e846d210efcfb2dc491 Mon Sep 17 00:00:00 2001 From: Erik Osheim Date: Fri, 4 Sep 2020 01:09:34 -0400 Subject: [PATCH] support python 3 --- unbox | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/unbox b/unbox index cec4214..62421db 100755 --- a/unbox +++ b/unbox @@ -27,8 +27,8 @@ def usage(err=None): retval = 0 if err: retval = 1 - print 'error: %s' % err - print 'usage: unbox ARCHIVE' + print('error: %s' % err) + print('usage: unbox ARCHIVE') sys.exit(retval) if __name__ == "__main__": @@ -56,7 +56,7 @@ if __name__ == "__main__": os.close(fd) cwd = os.getcwd() - print d + print(d) os.chdir(d) base2 = os.path.basename(path2) @@ -66,7 +66,7 @@ if __name__ == "__main__": retcode = call(cmd) if retcode != 0: - print 'error: %s failed (%d)' % (cmd[0], retcode) + print('error: %s failed (%d)' % (cmd[0], retcode)) sys.exit(1) os.unlink(path2)