# from the original file '_copy_async.py'
# DO NOT CHANGE! Change the original file instead.
"""
-Psycopg Copy and related objects.
+Objects to support the COPY protocol (sync version).
"""
# Copyright (C) 2023 The Psycopg Team
"""
-Psycopg AsyncCopy and related objects.
+Objects to support the COPY protocol (async version).
"""
# Copyright (C) 2023 The Psycopg Team
# from the original file 'connection_async.py'
# DO NOT CHANGE! Change the original file instead.
"""
-psycopg async connection objects
+Psycopg connection object (sync version)
"""
# Copyright (C) 2020 The Psycopg Team
"""
-psycopg async connection objects
+Psycopg connection object (async version)
"""
# Copyright (C) 2020 The Psycopg Team
# from the original file 'null_pool_async.py'
# DO NOT CHANGE! Change the original file instead.
"""
-Psycopg null connection pool module.
+Psycopg null connection pool module (sync version).
"""
# Copyright (C) 2022 The Psycopg Team
"""
-Psycopg null connection pool module.
+Psycopg null connection pool module (async version).
"""
# Copyright (C) 2022 The Psycopg Team
# from the original file 'pool_async.py'
# DO NOT CHANGE! Change the original file instead.
"""
-Psycopg connection pool module.
+Psycopg connection pool module (sync version).
"""
# Copyright (C) 2021 The Psycopg Team
"""
-Psycopg connection pool module.
+Psycopg connection pool module (async version).
"""
# Copyright (C) 2021 The Psycopg Team
# from the original file 'sched_async.py'
# DO NOT CHANGE! Change the original file instead.
"""
-A minimal scheduler to schedule tasks to run in the future.
+A minimal scheduler to schedule tasks to run in the future (sync version).
Inspired to the standard library `sched.scheduler`, but designed for
-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.
+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.
"""
-A minimal scheduler to schedule tasks to run in the future.
+A minimal scheduler to schedule tasks to run in the future (async version).
Inspired to the standard library `sched.scheduler`, but designed for
multi-thread usage from the ground up, not as an afterthought. Tasks can be
and isinstance(body[0].value.value, str)
):
body[0].value.value = body[0].value.value.replace("Async", "")
+ body[0].value.value = body[0].value.value.replace("(async", "(sync")
def visit_Call(self, node: ast.Call) -> ast.AST:
if isinstance(node.func, ast.Name) and node.func.id == "TypeVar":