mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-25 17:36:18 +03:00
Fixed duplicate import in pilprint
This commit is contained in:
parent
d88a7b778f
commit
0ca14909ed
|
@ -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...")
|
||||
|
|
Loading…
Reference in New Issue
Block a user