Factor out docstring dedenting from inspect.getdoc() into inspect.cleandoc()
to ease standalone use of the algorithm.
diff --git a/Misc/NEWS b/Misc/NEWS
index c0f25cc..b5afbcc 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -72,6 +72,9 @@
 Library
 -------
 
+- Factored out the indentation cleaning from inspect.getdoc() into
+  inspect.cleandoc() to ease standalone use.
+
 - Issue #1798: Add ctypes calling convention that allows safe access
   to errno.