Mercurial > hg
comparison tests/printrepr.py @ 10263:25e572394f5c stable
Update license to GPLv2+
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Tue, 19 Jan 2010 22:20:08 -0600 |
parents | 0eb8c4df61bd |
children |
comparison
equal
deleted
inserted
replaced
10262:eb243551cbd8 | 10263:25e572394f5c |
---|---|
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # | 2 # |
3 # Copyright 2009 Matt Mackall <mpm@selenic.com> and others | 3 # Copyright 2009 Matt Mackall <mpm@selenic.com> and others |
4 # | 4 # |
5 # This software may be used and distributed according to the terms of the | 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. | 6 # GNU General Public License version 2 or any later version. |
7 | 7 |
8 """prints repr(sys.stdin) but preserves newlines in input""" | 8 """prints repr(sys.stdin) but preserves newlines in input""" |
9 | 9 |
10 import sys | 10 import sys |
11 print repr(sys.stdin.read())[1:-1].replace('\\n', '\n'), | 11 print repr(sys.stdin.read())[1:-1].replace('\\n', '\n'), |