1
0
Fork 0

terrasync.py: fix a small formatting issue with --report

Remove unneeded blank lines between listed files or dirs when using
--report.
This commit is contained in:
Florent Rougon 2018-02-07 11:35:45 +01:00
parent c30298ffce
commit cb6b267430

View file

@ -374,8 +374,8 @@ class Report:
for heading, setOfFilesOrDirs in reportElements:
if setOfFilesOrDirs:
l.append(heading + ":\n")
l.extend( (" " + str(f) + '\n'
for f in sorted(setOfFilesOrDirs)) )
l.extend( (" " + str(f) for f in sorted(setOfFilesOrDirs)) )
l.append('') # ensure a blank line follows the list
else:
l.append(heading + ": none")