| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 2594589 commit c53eeac
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -190,7 +190,7 @@ def execute(self, command, | |||
| 190 | 190 | status = 0 | |
| 191 | 191 | try: | |
| 192 | 192 | if output_stream is None: | |
| 193 | - stdout_value = proc.stdout.read() | ||
| 193 | + stdout_value = proc.stdout.read().rstrip() # strip trailing "\n" | ||
| 194 | 194 | else: | |
| 195 | 195 | max_chunk_size = 1024*64 | |
| 196 | 196 | while True: | |
@@ -201,7 +201,7 @@ def execute(self, command, | |||
| 201 | 201 | # END reading output stream | |
| 202 | 202 | stdout_value = output_stream | |
| 203 | 203 | # END stdout handling | |
| 204 | - stderr_value = proc.stderr.read() | ||
| 204 | + stderr_value = proc.stderr.read().rstrip() # strip trailing "\n" | ||
| 205 | 205 | # waiting here should do nothing as we have finished stream reading | |
| 206 | 206 | status = proc.wait() | |
| 207 | 207 | finally: | |
| Back | FazBrowse Home | New Git URL |
0 commit comments