Show More
@@ -105,9 +105,12 b' def run():' | |||||
105 | # change the status code and move on. |
|
105 | # change the status code and move on. | |
106 | except IOError: |
|
106 | except IOError: | |
107 | status = -1 |
|
107 | status = -1 | |
108 |
|
||||
109 | sys.exit(status & 255) |
|
108 | sys.exit(status & 255) | |
110 |
|
109 | |||
|
110 | if pycompat.ispy3: | |||
|
111 | def _initstdio(): | |||
|
112 | pass | |||
|
113 | else: | |||
111 | def _initstdio(): |
|
114 | def _initstdio(): | |
112 | for fp in (sys.stdin, sys.stdout, sys.stderr): |
|
115 | for fp in (sys.stdin, sys.stdout, sys.stderr): | |
113 | util.setbinary(fp) |
|
116 | util.setbinary(fp) |
General Comments 0
You need to be logged in to leave comments.
Login now