support python 3

This commit is contained in:
~d6 2020-09-04 01:09:34 -04:00
parent 153f7dd0b4
commit 062f9ea5dd
1 changed files with 4 additions and 4 deletions

8
unbox
View File

@ -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)