Commit 49da0ead authored by Brett Cannon's avatar Brett Cannon

Move imgfile import to the global namespace to trigger an import error ASAP to

prevent creation of a test file.
parent 5e263510
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
from test.test_support import verbose, unlink from test.test_support import verbose, unlink
import imageop, uu, os import imageop, uu, os, imgfile
import warnings import warnings
...@@ -119,9 +119,6 @@ def getimage(name): ...@@ -119,9 +119,6 @@ def getimage(name):
"""return a tuple consisting of """return a tuple consisting of
image (in 'imgfile' format) width and height image (in 'imgfile' format) width and height
""" """
import imgfile
try: try:
sizes = imgfile.getsizes(name) sizes = imgfile.getsizes(name)
except imgfile.error: except imgfile.error:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment