From 67b9c0c7c05713c214cbb6f41e9b03771ceee74d Mon Sep 17 00:00:00 2001 From: Denys Zhdanov Date: Fri, 19 Jan 2024 12:42:37 +0100 Subject: [PATCH] Taming linter --- bin/whisper-resize.py | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/bin/whisper-resize.py b/bin/whisper-resize.py index a92b0c8..b06acaf 100755 --- a/bin/whisper-resize.py +++ b/bin/whisper-resize.py @@ -84,7 +84,8 @@ if not options.silent: size = os.stat(path).st_size blocks = os.stat(path).st_blocks - print('Old file: %s (%d bytes, %d blocks*%d=%d bytes on disk)' % (path, size, blocks, 512, blocks*512)) + print('Old file: %s (%d bytes, %d blocks*%d=%d bytes on disk)' + % (path, size, blocks, 512, blocks * 512)) info = whisper.info(path) @@ -127,15 +128,17 @@ print('Creating new whisper database: %s' % newfile) try: - whisper.create(newfile, new_archives, xFilesFactor=xff, aggregationMethod=aggregationMethod, - sparse=options.sparse, useFallocate=options.fallocate) + whisper.create(newfile, new_archives, xFilesFactor=xff, + aggregationMethod=aggregationMethod, sparse=options.sparse, + useFallocate=options.fallocate) except whisper.WhisperException as exc: raise SystemExit('[ERROR] %s' % str(exc)) size = os.stat(newfile).st_size blocks = os.stat(newfile).st_blocks if not options.quiet and not options.silent: - print('Created: %s (%d bytes, %d blocks*%d=%d bytes on disk)' % (newfile, size, blocks, 512, blocks*512)) + print('Created: %s (%d bytes, %d blocks*%d=%d bytes on disk)' + % (newfile, size, blocks, 512, blocks * 512)) if options.aggregate: # This is where data will be interpolated (best effort) @@ -230,10 +233,10 @@ if not options.silent: size = os.stat(path).st_size blocks = os.stat(path).st_blocks - print('New file: %s (%d bytes, %d blocks*%d=%d bytes on disk)' % (path, size, blocks, 512, blocks*512)) + print('New file: %s (%d bytes, %d blocks*%d=%d bytes on disk)' + % (path, size, blocks, 512, blocks * 512)) if options.nobackup: if not options.quiet and not options.silent: print("Unlinking backup: %s" % backup) os.unlink(backup) -