1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-06-03 18:10:07 +02:00

- do_cat(): do not print a newline (strip the trailing '\n' from string)

This commit is contained in:
Marcus Hüwe 2007-12-13 12:00:16 +00:00
parent dbfcb32435
commit 5242289d3d

View File

@ -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)