Show More
@@ -438,14 +438,8 b' class chgcmdserver(commandserver.server)' | |||
|
438 | 438 | nullfd = os.open(os.devnull, os.O_WRONLY) |
|
439 | 439 | ui = self.ui |
|
440 | 440 | for (ch, fp, fd), (cn, fn, mode) in zip(self._oldios, _iochannels): |
|
441 | newfp = getattr(ui, fn) | |
|
442 | # On Python 3, newfp is just a wrapper around fp even if newfp is | |
|
443 | # not fp, so deleting newfp is safe. | |
|
444 | if newfp is not fp: | |
|
445 | newfp.close() | |
|
446 | # restore original fd: fp is open again | |
|
447 | 441 | try: |
|
448 |
if |
|
|
442 | if 'w' in mode: | |
|
449 | 443 | # Discard buffered data which couldn't be flushed because |
|
450 | 444 | # of EPIPE. The data should belong to the current session |
|
451 | 445 | # and should never persist. |
General Comments 0
You need to be logged in to leave comments.
Login now