From d8be1ceb68e4a1794acc44e94444dda685c62544 Mon Sep 17 00:00:00 2001 From: Daniele Varrazzo Date: Thu, 23 Sep 2021 03:59:19 +0200 Subject: [PATCH] Fix partially written comment The issue was addressed before the comment could be written in all its ugliness. --- psycopg/psycopg/cursor.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/psycopg/psycopg/cursor.py b/psycopg/psycopg/cursor.py index ed54be95a..93cfe6ca2 100644 --- a/psycopg/psycopg/cursor.py +++ b/psycopg/psycopg/cursor.py @@ -246,9 +246,8 @@ class BaseCursor(Generic[ConnectionType, Row]): # run the query results = yield from execute(self._conn.pgconn) - # Update the prepare state of the query - # If an operation requires to flush our prepared statements cache, - # do it. Note that there is an off-by-one error because + # Update the prepare state of the query. + # If an operation requires to flush our prepared statements cache, do it. cmd = self._conn._prepared.maintain(pgq, results, prep, name) if cmd: yield from self._conn._exec_command(cmd) -- 2.47.3