hooks: set Windows stderr output mode to binary This prevents Python (or the Windows console) from replacing \n with \r\n. The extra \r made exception outp...

domruf committed on 2016-06-14 19:23:51
branch: default
tag: tip
changeset: 58809814
hooks: set Windows stderr output mode to binary

This prevents Python (or the Windows console) from replacing \n with  \r\n. The
extra \r made exception output show up with empty lines.

Assuming we only get text and never binary data on stderr, an alternative
solution could be to strip trailing whitespace ...

 M kallithea/config/post_receive_tmpl.py (9 lines added, 0 lines removed)
 M kallithea/config/pre_receive_tmpl.py (9 lines added, 0 lines removed)
_______________________________________________
kallithea-general mailing list
[email protected]
http://lists.sfconservancy.org/mailman/listinfo/kallithea-general

Reply via email to