-
-
Save bitprophet/f232df87befa0fd0bf95 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/fabric/io.py b/fabric/io.py | |
index a8b976e..2528ce7 100644 | |
--- a/fabric/io.py | |
+++ b/fabric/io.py | |
@@ -1,6 +1,7 @@ | |
from __future__ import with_statement | |
import sys | |
+import time | |
from select import select | |
from fabric.context_managers import settings, char_buffered | |
@@ -8,6 +9,7 @@ from fabric.state import env, output, win32 | |
from fabric.auth import get_password, set_password | |
import fabric.network | |
+ | |
if win32: | |
import msvcrt | |
@@ -126,3 +128,4 @@ def input_loop(chan, using_pty): | |
# output level, don't want it to be accidentally hidden | |
sys.stdout.write(byte) | |
sys.stdout.flush() | |
+ time.sleep(0.1) | |
diff --git a/fabric/operations.py b/fabric/operations.py | |
index ef00494..4109588 100644 | |
--- a/fabric/operations.py | |
+++ b/fabric/operations.py | |
@@ -754,7 +754,7 @@ def _execute(channel, command, pty=True, combine_stderr=True, | |
e = worker.exception | |
if e: | |
raise e[0], e[1], e[2] | |
- | |
+ time.sleep(0.1) | |
# Obtain exit code of remote program now that we're done. | |
status = channel.recv_exit_status() | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment