From e7798574b3fbb087469940c46031b1261ee94dc2 Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Tue, 18 May 2021 17:45:25 -0700 Subject: [PATCH] Rename argument fpobj -> path. --- voussoirkit/spinal.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/voussoirkit/spinal.py b/voussoirkit/spinal.py index ea1c36e..0e5ef5b 100644 --- a/voussoirkit/spinal.py +++ b/voussoirkit/spinal.py @@ -46,7 +46,7 @@ class SpinalError(SpinalException): class ValidationError(SpinalException): pass -def callback_progress_v1(fpobj, written_bytes, total_bytes): +def callback_progress_v1(path, written_bytes, total_bytes): ''' Example of a copy callback function. @@ -61,7 +61,7 @@ def callback_progress_v1(fpobj, written_bytes, total_bytes): written = '{:,}'.format(written_bytes) total = '{:,}'.format(total_bytes) written = written.rjust(len(total), ' ') - status = f'{fpobj.absolute_path} {written}/{total} ({percent}%)\r' + status = f'{path.absolute_path} {written}/{total} ({percent}%)\r' safeprint.safeprint(status, end=ends) sys.stdout.flush()