From 19af11603460f19848d3f91077ce831027501102 Mon Sep 17 00:00:00 2001 From: "James R. Barlow" Date: Thu, 6 Feb 2025 00:40:35 -0800 Subject: [PATCH] Tidy whitespace --- src/ocrmypdf/_progressbar.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/ocrmypdf/_progressbar.py b/src/ocrmypdf/_progressbar.py index 2a6a581e..f15a171d 100644 --- a/src/ocrmypdf/_progressbar.py +++ b/src/ocrmypdf/_progressbar.py @@ -97,11 +97,11 @@ class ProgressBar(Protocol): print(f"{self.desc}: {self.current}/{self.total} ({percent:.1f}%)") else: print(f"{self.desc}: {self.current} units done") - + @hookimpl def get_progressbar_class(): return MyProgressBar - + """ def __init__( @@ -144,7 +144,7 @@ class ProgressBar(Protocol): OCRmyPDF calls this method repeatedly while processing pages or other tasks. If your total is known and you track it, you might do something like: - + .. code-block:: python self.current += n @@ -167,6 +167,7 @@ class ProgressBar(Protocol): for percentage-based tracking (e.g., when ``total`` is 100). """ + class NullProgressBar: """Progress bar API that takes no actions."""