Skip to content

Commit

Permalink
codecov is reporting missing coverage in this file
Browse files Browse the repository at this point in the history
testing to see if moving this import will have any affect
  • Loading branch information
ikirudennis committed Aug 5, 2024
1 parent 5cb1485 commit 425afff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions textile/tools/imagesize.py
Original file line number Diff line number Diff line change
@@ -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,
Expand All @@ -11,8 +13,6 @@ def getimagesize(url):
except ImportError:
return ''

from urllib.request import urlopen

try:
p = ImageFile.Parser()
f = urlopen(url)
Expand Down

0 comments on commit 425afff

Please sign in to comment.