From 1aefc90cb0e980992057f9d1618d4854624a9178 Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Tue, 9 Jan 2018 06:21:52 +1100 Subject: [PATCH] Removed __main__ code --- src/PIL/ImageCms.py | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/src/PIL/ImageCms.py b/src/PIL/ImageCms.py index 40fb1ad0a..a1aad304e 100644 --- a/src/PIL/ImageCms.py +++ b/src/PIL/ImageCms.py @@ -952,22 +952,3 @@ def versions(): VERSION, core.littlecms_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