From ec2b549a4da70d4af511108d3699d4e00606bcf9 Mon Sep 17 00:00:00 2001 From: nulano Date: Thu, 9 Jul 2020 19:48:58 +0200 Subject: [PATCH] fix _imaging and Image.core references --- docs/porting.rst | 3 ++- docs/reference/internal_modules.rst | 9 +++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/docs/porting.rst b/docs/porting.rst index d962e9330..2943d72fd 100644 --- a/docs/porting.rst +++ b/docs/porting.rst @@ -19,7 +19,8 @@ to this:: from PIL import Image -The :py:mod:`~PIL._imaging` module has been moved. You can now import it like this:: +The :py:mod:`PIL._imaging` module has been moved to :py:mod:`PIL.Image.core`. +You can now import it like this:: from PIL.Image import core as _imaging diff --git a/docs/reference/internal_modules.rst b/docs/reference/internal_modules.rst index 288a049ee..1105ff76e 100644 --- a/docs/reference/internal_modules.rst +++ b/docs/reference/internal_modules.rst @@ -36,3 +36,12 @@ Internal Modules This is the master version number for Pillow, all other uses reference this module. + +:mod:`PIL.Image.core` Module +---------------------------- + +.. module:: PIL._imaging +.. module:: PIL.Image.core + +An internal interface module previously known as :mod:`~PIL._imaging`, +implemented in :file:`_imaging.c`.