summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2016-12-05 14:26:53 +0100
committerGitHub <noreply@github.com>2016-12-05 14:26:53 +0100
commita72d9fe183301ddf084aa15d765002532a316efb (patch)
treed13ee9f502e61b3fe7be640e7d4fafbc421b91d1
parentdc11b97a0f88eb1b4a3a1f66a4b6319bf6fc7225 (diff)
parent907fac43a50567368115121d39cfc7f53c29f907 (diff)
downloadtrollius-git-a72d9fe183301ddf084aa15d765002532a316efb.tar.gz
Merge pull request #9 from pavan123k/patch-1
From(proc.wait()) instead of form proc.wait()
-rw-r--r--examples/shell.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/shell.py b/examples/shell.py
index 91ba7fb..c78594e 100644
--- a/examples/shell.py
+++ b/examples/shell.py
@@ -46,7 +46,7 @@ def test_call(*args, **kw):
except asyncio.TimeoutError:
print("timeout! (%.1f sec)" % timeout)
proc.kill()
- yield from proc.wait()
+ yield From(proc.wait())
loop = asyncio.get_event_loop()
loop.run_until_complete(cat(loop))