diff --git a/bin/img_rotate b/bin/img_rotate index 97edb82..e8ffa81 100644 --- a/bin/img_rotate +++ b/bin/img_rotate @@ -1,10 +1,12 @@ #!/usr/bin/env python +from __future__ import print_function + import sys import img_rotate path = sys.argv[1] try: image, degrees = img_rotate.fix_orientation(path, save_over=True) - print '%s was rotated %s degrees.' % (path, degrees) -except Exception, e: - print "** Error: %s" % e + print('%s was rotated %s degrees.' % (path, degrees)) +except Exception as e: + print("** Error: %s" % e)