Deprecate Popen.wait()'s undocumented endtime parameter. issue20572.
diff --git a/Doc/library/subprocess.rst b/Doc/library/subprocess.rst
index 95a85ce..1a9dd9d 100644
--- a/Doc/library/subprocess.rst
+++ b/Doc/library/subprocess.rst
@@ -639,6 +639,11 @@
.. versionchanged:: 3.3
*timeout* was added.
+ .. deprecated:: 3.4
+
+ Do not use the undocumented *endtime* parameter. It is was
+ unintentionally exposed in 3.3 but was intended to be private
+ for internal use. Use *timeout* instead.
.. method:: Popen.communicate(input=None, timeout=None)