Commit 2c0c04e
committed
Fix roundup-server logging for Python 3.
Using the roundup-server support for redirecting output to a log file
fails with Python 3:
sys.stdout = sys.stderr = open(self["LOGFILE"], 'a', 0)
ValueError: can't have unbuffered text I/O
Thus, this patch switches that redirection to use line-buffered output
(1 as third argument to open), which works with both Python 2 and
Python 3.1 parent 406a29b commit 2c0c04e
1 file changed
+3
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
674 | 674 | | |
675 | 675 | | |
676 | 676 | | |
677 | | - | |
678 | | - | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
679 | 680 | | |
680 | 681 | | |
681 | 682 | | |
| |||
0 commit comments