From 81873ddfe025bafe27d55f13b1de47e69b95384a Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Sun, 29 Jun 2014 20:56:26 +0400 Subject: [PATCH] Fix a bug --- subproc.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/subproc.py b/subproc.py index d9eba61..f9a77b5 100644 --- a/subproc.py +++ b/subproc.py @@ -204,8 +204,9 @@ class Subprocess: return self.readPendingChars() got = '' while n: - got = got + self.readPendingChars(n) - n = n - len(got) + got0 = self.readPendingChars(n) + got = got + got0 + n = n - len(got0) return got def readPendingChars(self, max=None): """Read all currently pending subprocess output as a single string.""" -- 2.39.5