Skip to content

Commit 3d6d5b4

Browse files
committed
updated to be consistent with flake8 standards
Signed-off-by: Marco Canto <[email protected]>
1 parent 4c29150 commit 3d6d5b4

File tree

1 file changed

+2
-14
lines changed

1 file changed

+2
-14
lines changed

examples/object_storage/object_storage_list_folders.py

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -319,14 +319,7 @@ def main():
319319
)
320320
)
321321
if cmd.file:
322-
file.write(
323-
str(folder)
324-
+ ","
325-
+ "{:.2f}".format(round(f_size, 2))
326-
+ ","
327-
+ str(file_count[folder])
328-
+ "\n"
329-
)
322+
file.write(str(folder) + "," + "{:.2f}".format(round(f_size, 2)) + "," + str(file_count[folder]) + "\n")
330323

331324
if not next_starts_with:
332325
break
@@ -338,12 +331,7 @@ def main():
338331
print("Total Size : " + str("{:20,.0f}".format(size)).rjust(20))
339332

340333
if cmd.file:
341-
file.write(
342-
"Total Files : "
343-
+ str("{:10,.0f}".format(count)).rjust(10)
344-
+ " Size : "
345-
+ str("{:20,.0f}".format(size)).rjust(20)
346-
)
334+
file.write("Total Files : " + str("{:10,.0f}".format(count)).rjust(10) + " Size : " + str("{:20,.0f}".format(size)).rjust(20))
347335
file.close()
348336

349337

0 commit comments

Comments
 (0)