1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-08-01 21:23:39 +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] print >>sys.stderr, 'error - cannot display binary file \'%s\'' % args[2]
else: else:
for line in open(filename): for line in open(filename):
print line print line.rstrip('\n')
try: try:
os.unlink(filename) os.unlink(filename)