From 425afff8e67f396ec1f220c9978e2a2e4b2d18e3 Mon Sep 17 00:00:00 2001 From: Dennis Burke Date: Mon, 5 Aug 2024 14:15:18 -0400 Subject: [PATCH] codecov is reporting missing coverage in this file testing to see if moving this import will have any affect --- textile/tools/imagesize.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/textile/tools/imagesize.py b/textile/tools/imagesize.py index 6fba73eb..ec724a2c 100644 --- a/textile/tools/imagesize.py +++ b/textile/tools/imagesize.py @@ -1,3 +1,5 @@ +from urllib.request import urlopen + def getimagesize(url): """ Attempts to determine an image's width and height, and returns a tuple, @@ -11,8 +13,6 @@ def getimagesize(url): except ImportError: return '' - from urllib.request import urlopen - try: p = ImageFile.Parser() f = urlopen(url)