branch | stable |
changeset 12953 | f3183932c487 |
parent 12938 | bf826c0b9537 |
parent 12951 | 101366ad816c |
child 12955 | 158ca54a79cc |
12938:bf826c0b9537 | 12953:f3183932c487 |
---|---|
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 or any later version. |
|
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'), |