Skip to content

Commit eaedd24

Browse files
committed
xcp: get rid of useless blackslash line continuations
Signed-off-by: Yann Dirson <[email protected]>
1 parent cfc8859 commit eaedd24

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

xcp/bootloader.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,7 @@ def readExtLinux(cls, src_file):
146146
title = l[1:].lstrip()
147147
elif keywrd == 'kernel' and len(els) > 1:
148148
kernel = els[1]
149-
elif keywrd == 'append' and len(els) > 1 and \
150-
kernel == 'mboot.c32':
149+
elif keywrd == 'append' and len(els) > 1 and kernel == 'mboot.c32':
151150
if 'tboot' in els[1]:
152151
# els[2] contains tboot args, hypervisor,
153152
# hypervisor args, kernel,

xcp/cpiofile.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1289,8 +1289,7 @@ def list(self, verbose=True):
12891289
print("%10s" % ("%d,%d" % (cpioinfo.devmajor, cpioinfo.devminor)), end=' ')
12901290
else:
12911291
print("%10d" % cpioinfo.size, end=' ')
1292-
print("%d-%02d-%02d %02d:%02d:%02d" \
1293-
% time.localtime(cpioinfo.mtime)[:6], end=' ')
1292+
print("%d-%02d-%02d %02d:%02d:%02d" % time.localtime(cpioinfo.mtime)[:6], end=' ')
12941293

12951294
print(cpioinfo.name, end=' ')
12961295

0 commit comments

Comments
 (0)