mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-28 02:04:36 +03:00
Merge pull request #2942 from radarhere/imagecms_remove_main
Removed __main__ code from ImageCms
This commit is contained in:
commit
d6973ff50f
|
@ -952,22 +952,3 @@ def versions():
|
||||||
VERSION, core.littlecms_version,
|
VERSION, core.littlecms_version,
|
||||||
sys.version.split()[0], Image.VERSION
|
sys.version.split()[0], Image.VERSION
|
||||||
)
|
)
|
||||||
|
|
||||||
# --------------------------------------------------------------------
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
|
||||||
# create a cheap manual from the __doc__ strings for the functions above
|
|
||||||
|
|
||||||
print(__doc__)
|
|
||||||
|
|
||||||
for f in dir(sys.modules[__name__]):
|
|
||||||
doc = None
|
|
||||||
try:
|
|
||||||
exec("doc = %s.__doc__" % (f))
|
|
||||||
if "pyCMS" in doc:
|
|
||||||
# so we don't get the __doc__ string for imported modules
|
|
||||||
print("=" * 80)
|
|
||||||
print("%s" % f)
|
|
||||||
print(doc)
|
|
||||||
except (AttributeError, TypeError):
|
|
||||||
pass
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user