]> granicus.if.org Git - python/commitdiff
Issue #23347, asyncio: Make BaseSubprocessTransport.wait() private
authorVictor Stinner <victor.stinner@gmail.com>
Thu, 29 Jan 2015 23:16:14 +0000 (00:16 +0100)
committerVictor Stinner <victor.stinner@gmail.com>
Thu, 29 Jan 2015 23:16:14 +0000 (00:16 +0100)
Lib/asyncio/base_subprocess.py
Lib/asyncio/subprocess.py
Lib/asyncio/unix_events.py
Lib/asyncio/windows_events.py

index 001f9b8c242a46a9495be0d03208ff8c296a15d7..70676ab3ff56c55ec86054049bf44313d786091b 100644 (file)
@@ -208,7 +208,7 @@ class BaseSubprocessTransport(transports.SubprocessTransport):
                 waiter.set_result(returncode)
         self._exit_waiters = None
 
-    def wait(self):
+    def _wait(self):
         """Wait until the process exit and return the process return code.
 
         This method is a coroutine."""
index d0c9779c1c92a1a56f397abfb9ad6b95c8ddcb16..4600a9f417da2a3123d0f9a94b360182bc02ac2f 100644 (file)
@@ -115,7 +115,7 @@ class Process:
         """Wait until the process exit and return the process return code.
 
         This method is a coroutine."""
-        return (yield from self._transport.wait())
+        return (yield from self._transport._wait())
 
     def send_signal(self, signal):
         self._transport.send_signal(signal)
index 3ecdfd2e0b18cd89dbf39eab8d5a034790a4f60c..1fc39abe09ce8b2527f3f43030395a0631064ed5 100644 (file)
@@ -188,7 +188,7 @@ class _UnixSelectorEventLoop(selector_events.BaseSelectorEventLoop):
                 yield from waiter
             except:
                 transp.close()
-                yield from transp.wait()
+                yield from transp._wait()
                 raise
 
         return transp
index 437eb0ac9dd7fc11b3c9024aaae6438af03e7b7c..c4bffc473465b8548d22c5bb8a99f589f255ee1d 100644 (file)
@@ -375,7 +375,7 @@ class ProactorEventLoop(proactor_events.BaseProactorEventLoop):
             yield from waiter
         except:
             transp.close()
-            yield from transp.wait()
+            yield from transp._wait()
             raise
 
         return transp