]> git.ipfire.org Git - thirdparty/psycopg.git/commitdiff
docs: fix typos/grammar
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Sun, 8 Oct 2023 08:30:26 +0000 (09:30 +0100)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Wed, 11 Oct 2023 21:45:39 +0000 (23:45 +0200)
Co-authored-by: Daniel Fortunov <asqui@users.noreply.github.com>
psycopg_pool/psycopg_pool/base_null_pool.py
psycopg_pool/psycopg_pool/sched.py
psycopg_pool/psycopg_pool/sched_async.py

index 199e701d254b13e5d30cd2a17fa5a1d7fac499a2..165ffcc8678bc58988ab62cbcd838b8701896347 100644 (file)
@@ -1,5 +1,5 @@
 """
-Psycopg mixin class null connection pools
+Psycopg mixin class for null connection pools
 """
 
 # Copyright (C) 2022 The Psycopg Team
index 4a284861551f2afc56e6cf501d94796b6a01eeeb..6b36f4b6cbcefcf1af6e8beecc19f0337eee59c8 100644 (file)
@@ -2,12 +2,12 @@
 # from the original file 'sched_async.py'
 # DO NOT CHANGE! Change the original file instead.
 """
-A minimal scheduler to schedule tasks run in the future.
+A minimal scheduler to schedule tasks to run in the future.
 
 Inspired to the standard library `sched.scheduler`, but designed for
-multi-thread usage ground up, not as an afterthought. Tasks can be scheduled in
+multi-thread usage from the ground up, not as an afterthought. Tasks can be scheduled in
 front of the one currently running and `Scheduler.run()` can be left running
-without any task scheduled.
+without any tasks scheduled.
 
 Tasks are called "Task", not "Event", here, because we actually make use of
 `[threading/asyncio].Event` and the two would be confusing.
@@ -28,7 +28,6 @@ logger = logging.getLogger(__name__)
 
 class Scheduler:
     def __init__(self) -> None:
-        """Initialize a new instance, passing the time and delay functions."""
         self._queue: List[Task] = []
         self._lock = Lock()
         self._event = Event()
index db273dd1f7e333cedbb7dc125be02b4abc7ed70a..d69a0b0a3b1705dbc1506aa8d962786744ef92e0 100644 (file)
@@ -1,10 +1,10 @@
 """
-A minimal scheduler to schedule tasks run in the future.
+A minimal scheduler to schedule tasks to run in the future.
 
 Inspired to the standard library `sched.scheduler`, but designed for
-multi-thread usage ground up, not as an afterthought. Tasks can be scheduled in
-front of the one currently running and `Scheduler.run()` can be left running
-without any task scheduled.
+multi-thread usage from the ground up, not as an afterthought. Tasks can be
+scheduled in front of the one currently running and `Scheduler.run()` can be
+left running without any tasks scheduled.
 
 Tasks are called "Task", not "Event", here, because we actually make use of
 `[threading/asyncio].Event` and the two would be confusing.
@@ -25,7 +25,6 @@ logger = logging.getLogger(__name__)
 
 class AsyncScheduler:
     def __init__(self) -> None:
-        """Initialize a new instance, passing the time and delay functions."""
         self._queue: List[Task] = []
         self._lock = ALock()
         self._event = AEvent()