Show More
@@ -0,0 +1,11 b'' | |||||
|
1 | #!/usr/bin/env python | |||
|
2 | # | |||
|
3 | # Copyright 2009 Matt Mackall <mpm@selenic.com> and others | |||
|
4 | # | |||
|
5 | # This software may be used and distributed according to the terms of the | |||
|
6 | # GNU General Public License version 2, incorporated herein by reference. | |||
|
7 | ||||
|
8 | """prints repr(sys.stdin) but preserves newlines in input""" | |||
|
9 | ||||
|
10 | import sys | |||
|
11 | print repr(sys.stdin.read())[1:-1].replace('\\n', '\n'), |
General Comments 0
You need to be logged in to leave comments.
Login now