From: Oleg Broytman Date: Sun, 29 Jun 2014 16:56:26 +0000 (+0400) Subject: Fix a bug X-Git-Tag: v4.6.0~22 X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=81873ddfe025bafe27d55f13b1de47e69b95384a;p=bookmarks_db.git Fix a bug --- 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."""