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:
@@ -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)
|
||||||
|
Reference in New Issue
Block a user