Skip to content

Commit

Permalink
setting this back to what it was
Browse files Browse the repository at this point in the history
  • Loading branch information
ikirudennis committed Aug 5, 2024
1 parent 766c767 commit 9951604
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions textile/tools/imagesize.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
from urllib.request import urlopen


def getimagesize(url):
"""
Attempts to determine an image's width and height, and returns a tuple,
Expand All @@ -14,6 +11,8 @@ def getimagesize(url):
except ImportError:
return ''

from urllib.request import urlopen

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

0 comments on commit 9951604

Please sign in to comment.