Fixed duplicate import in pilprint

This commit is contained in:
Andrew Murray 2015-04-01 09:04:28 +11:00
parent d88a7b778f
commit 0ca14909ed

View File

@ -11,6 +11,7 @@
# 0.3 2003-05-06 fl Fixed a typo or two.
#
import getopt, os, sys
from __future__ import print_function
VERSION = "pilprint 0.3/2003-05-05"
@ -21,15 +22,12 @@ from PIL import PSDraw
letter = ( 1.0*72, 1.0*72, 7.5*72, 10.0*72 )
def description(file, image):
import os
title = os.path.splitext(os.path.split(file)[1])[0]
format = " (%dx%d "
if image.format:
format = " (" + image.format + " %dx%d "
return title + format % image.size + image.mode + ")"
import getopt, os, sys
if len(sys.argv) == 1:
print("PIL Print 0.2a1/96-10-04 -- print image files")
print("Usage: pilprint files...")