| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 1e1e19d commit fc417da
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -33,6 +33,7 @@ | |||
| 33 | 33 | import re | |
| 34 | 34 | import os | |
| 35 | 35 | import sys | |
| 36 | + import io | ||
| 36 | 37 | ||
| 37 | 38 | __all__ = ('RemoteProgress', 'PushInfo', 'FetchInfo', 'Remote') | |
| 38 | 39 | ||
@@ -547,10 +548,11 @@ def _get_push_info(self, proc, progress): | |||
| 547 | 548 | # we hope stdout can hold all the data, it should ... | |
| 548 | 549 | # read the lines manually as it will use carriage returns between the messages | |
| 549 | 550 | # to override the previous one. This is why we read the bytes manually | |
| 550 | - digest_process_messages(proc.stderr, progress) | ||
| 551 | + stdout, stderr = proc.communicate() | ||
| 552 | + digest_process_messages(io.StringIO(stderr), progress) | ||
| 551 | 553 | ||
| 552 | 554 | output = IterableList('name') | |
| 553 | - for line in proc.stdout.readlines(): | ||
| 555 | + for line in stdout.splitlines(): | ||
| 554 | 556 | try: | |
| 555 | 557 | output.append(PushInfo._from_line(self, line)) | |
| 556 | 558 | except ValueError: | |
@@ -559,7 +561,6 @@ def _get_push_info(self, proc, progress): | |||
| 559 | 561 | # END exception handling | |
| 560 | 562 | # END for each line | |
| 561 | 563 | ||
| 562 | - finalize_process(proc) | ||
| 563 | 564 | return output | |
| 564 | 565 | ||
| 565 | 566 | def fetch(self, refspec=None, progress=None, **kwargs): | |
| Back | FazBrowse Home | New Git URL |
0 commit comments