X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;ds=sidebyside;f=subproc.py;h=f9a77b5f6a8d70488e80dc22894940452d938f88;hb=81873ddfe025bafe27d55f13b1de47e69b95384a;hp=d9eba6151c1e0208c174f29cfe9494c11d3e9efb;hpb=e70621e769a50fdbe183092e4dd2c9dfda65bab5;p=bookmarks_db.git 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."""