| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -127,10 +127,11 @@ def get_push_info(repo, remotename_or_url, proc, progress): | |||
| 127 | 127 | # we hope stdout can hold all the data, it should ... | |
| 128 | 128 | # read the lines manually as it will use carriage returns between the messages | |
| 129 | 129 | # to override the previous one. This is why we read the bytes manually | |
| 130 | - digest_process_messages(proc.stderr, progress) | ||
| 130 | + stdout, stderr = proc.communicate() | ||
| 131 | + digest_process_messages(StringIO(stderr), progress) | ||
| 131 | 132 | ||
| 132 | 133 | output = IterableList('name') | |
| 133 | - for line in proc.stdout.readlines(): | ||
| 134 | + for line in stdout.splitlines(): | ||
| 134 | 135 | try: | |
| 135 | 136 | output.append(CmdPushInfo._from_line(repo, remotename_or_url, line)) | |
| 136 | 137 | except ValueError: | |
@@ -139,7 +140,6 @@ def get_push_info(repo, remotename_or_url, proc, progress): | |||
| 139 | 140 | # END exception handling | |
| 140 | 141 | # END for each line | |
| 141 | 142 | ||
| 142 | - finalize_process(proc) | ||
| 143 | 143 | return output | |
| 144 | 144 | ||
| 145 | 145 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments