From 5242289d3d03e69cbf7e19b26a980f3f77da63a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcus=20H=C3=BCwe?= Date: Thu, 13 Dec 2007 12:00:16 +0000 Subject: [PATCH] - do_cat(): do not print a newline (strip the trailing '\n' from string) --- osc/commandline.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osc/commandline.py b/osc/commandline.py index 50f8c607..53074d4c 100755 --- a/osc/commandline.py +++ b/osc/commandline.py @@ -1920,7 +1920,7 @@ class Osc(cmdln.Cmdln): print >>sys.stderr, 'error - cannot display binary file \'%s\'' % args[2] else: for line in open(filename): - print line + print line.rstrip('\n') try: os.unlink(filename)