]> git.ipfire.org Git - thirdparty/psycopg.git/commitdiff
style: uniform variable name between sync and async cursor
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Wed, 28 Dec 2022 03:26:43 +0000 (03:26 +0000)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Thu, 29 Dec 2022 04:06:02 +0000 (04:06 +0000)
psycopg/psycopg/cursor_async.py

index 8971d40971596a8ce8b6b10cad64afc03837ec37..42cd8e501f03308c2747d6aec313812f7cc847e9 100644 (file)
@@ -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()