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:
parent
dbfcb32435
commit
5242289d3d
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user