From c6ab7bda39ccb1347b3ab4d87a0d95c6532be496 Mon Sep 17 00:00:00 2001 From: Daniele Varrazzo Date: Wed, 28 Dec 2022 03:26:43 +0000 Subject: [PATCH] style: uniform variable name between sync and async cursor --- psycopg/psycopg/cursor_async.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/psycopg/psycopg/cursor_async.py b/psycopg/psycopg/cursor_async.py index 8971d4097..42cd8e501 100644 --- a/psycopg/psycopg/cursor_async.py +++ b/psycopg/psycopg/cursor_async.py @@ -173,10 +173,10 @@ class AsyncCursor(BaseCursor["AsyncConnection[Any]", Row]): async def fetchone(self) -> Optional[Row]: await self._fetch_pipeline() self._check_result_for_fetch() - rv = self._tx.load_row(self._pos, self._make_row) - if rv is not None: + record = self._tx.load_row(self._pos, self._make_row) + if record is not None: self._pos += 1 - return rv + return record async def fetchmany(self, size: int = 0) -> List[Row]: await self._fetch_pipeline() -- 2.47.3