mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
Move imgfile import to the global namespace to trigger an import error ASAP to
prevent creation of a test file.
This commit is contained in:
parent
5e2635103c
commit
49da0ead95
1 changed files with 1 additions and 4 deletions
|
@ -7,7 +7,7 @@
|
|||
|
||||
from test.test_support import verbose, unlink
|
||||
|
||||
import imageop, uu, os
|
||||
import imageop, uu, os, imgfile
|
||||
|
||||
import warnings
|
||||
|
||||
|
@ -119,9 +119,6 @@ def getimage(name):
|
|||
"""return a tuple consisting of
|
||||
image (in 'imgfile' format) width and height
|
||||
"""
|
||||
|
||||
import imgfile
|
||||
|
||||
try:
|
||||
sizes = imgfile.getsizes(name)
|
||||
except imgfile.error:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue