Mercurial > hg
view tests/printrepr.py @ 9323:f6683a7011e9
Backed out changeset 26fa0e31011d.
On OS X, it broke test-issue322, test-issue660, test-permissions,
test-symlink-addremove, and test-walk.
author | Brendan Cully <brendan@kublai.com> |
---|---|
date | Wed, 05 Aug 2009 22:51:30 -0700 |
parents | 0eb8c4df61bd |
children | 25e572394f5c |
line wrap: on
line source
#!/usr/bin/env python # # Copyright 2009 Matt Mackall <mpm@selenic.com> and others # # This software may be used and distributed according to the terms of the # GNU General Public License version 2, incorporated herein by reference. """prints repr(sys.stdin) but preserves newlines in input""" import sys print repr(sys.stdin.read())[1:-1].replace('\\n', '\n'),