From 36be37c5c56ae042b3a35e3abf3d59061c0e1162 Mon Sep 17 00:00:00 2001 From: Hugo Date: Sun, 1 Jul 2018 10:45:08 +0300 Subject: [PATCH] update package and version module docstrings Co-authored-by: gnbl --- src/PIL/__init__.py | 28 +++++++++++++++++----------- 1 file changed, 17 insertions(+), 11 deletions(-) diff --git a/src/PIL/__init__.py b/src/PIL/__init__.py index eee0abde5..a07280e31 100644 --- a/src/PIL/__init__.py +++ b/src/PIL/__init__.py @@ -1,15 +1,18 @@ -# -# The Python Imaging Library. -# $Id$ -# -# package placeholder -# -# Copyright (c) 1999 by Secret Labs AB. -# -# See the README file for information on usage and redistribution. -# +"""Pillow {} (Fork of the Python Imaging Library) -# ;-) +Pillow is the friendly PIL fork by Alex Clark and Contributors. + https://github.com/python-pillow/Pillow/ + +Pillow is forked from PIL 1.1.7. + +PIL is the Python Imaging Library by Fredrik Lundh and Contributors. +Copyright (c) 1999 by Secret Labs AB. + +Use PIL.__version__ for this Pillow version. +PIL.VERSION is the old PIL version and will be removed in the future. + +;-) +""" from . import _version @@ -21,6 +24,9 @@ PILLOW_VERSION = __version__ = _version.__version__ del _version +__doc__ = __doc__.format(__version__) # include version in docstring + + _plugins = ['BlpImagePlugin', 'BmpImagePlugin', 'BufrStubImagePlugin',