| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -73,6 +73,9 @@ def __init__(self, proc, args ): | |||
| 73 | 73 | self.args = args | |
| 74 | 74 | ||
| 75 | 75 | def __del__(self): | |
| 76 | + self.proc.stdout.close() | ||
| 77 | + self.proc.stderr.close() | ||
| 78 | + | ||
| 76 | 79 | # did the process finish already so we have a return code ? | |
| 77 | 80 | if self.proc.poll() is not None: | |
| 78 | 81 | return | |
@@ -100,6 +103,8 @@ def wait(self): | |||
| 100 | 103 | ||
| 101 | 104 | :raise GitCommandError: if the return status is not 0""" | |
| 102 | 105 | status = self.proc.wait() | |
| 106 | + self.proc.stdout.close() | ||
| 107 | + self.proc.stderr.close() | ||
| 103 | 108 | if status != 0: | |
| 104 | 109 | raise GitCommandError(self.args, status, self.proc.stderr.read()) | |
| 105 | 110 | # END status handling | |
| Back | FazBrowse Home | New Git URL |
0 commit comments