Skip to content

Commit

Permalink
Merge pull request #7173 from radarhere/relative
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed Jun 2, 2023
2 parents 3e8d9a8 + 546f6cb commit 9a560c7
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/PIL/IcnsImagePlugin.py
Expand Up @@ -22,11 +22,11 @@
import struct
import sys

from PIL import Image, ImageFile, PngImagePlugin, features
from . import Image, ImageFile, PngImagePlugin, features

enable_jpeg2k = features.check_codec("jpg_2000")
if enable_jpeg2k:
from PIL import Jpeg2KImagePlugin
from . import Jpeg2KImagePlugin

MAGIC = b"icns"
HEADERSIZE = 8
Expand Down
6 changes: 3 additions & 3 deletions src/PIL/ImageCms.py
Expand Up @@ -18,10 +18,10 @@
import sys
from enum import IntEnum

from PIL import Image
from . import Image

try:
from PIL import _imagingcms
from . import _imagingcms
except ImportError as ex:
# Allow error import for doc purposes, but error out when accessing
# anything in core.
Expand Down Expand Up @@ -271,7 +271,7 @@ def get_display_profile(handle=None):
if sys.platform != "win32":
return None

from PIL import ImageWin
from . import ImageWin

if isinstance(handle, ImageWin.HDC):
profile = core.get_display_profile_win32(handle, 1)
Expand Down
2 changes: 1 addition & 1 deletion src/PIL/ImageShow.py
Expand Up @@ -17,7 +17,7 @@
import sys
from shlex import quote

from PIL import Image
from . import Image

_viewers = []

Expand Down
4 changes: 2 additions & 2 deletions src/PIL/SpiderImagePlugin.py
Expand Up @@ -36,7 +36,7 @@
import struct
import sys

from PIL import Image, ImageFile
from . import Image, ImageFile


def isInt(f):
Expand Down Expand Up @@ -191,7 +191,7 @@ def convert2byte(self, depth=255):

# returns a ImageTk.PhotoImage object, after rescaling to 0..255
def tkPhotoImage(self):
from PIL import ImageTk
from . import ImageTk

return ImageTk.PhotoImage(self.convert2byte(), palette=256)

Expand Down

0 comments on commit 9a560c7

Please sign in to comment.