From 336bf341197c2500599dc6f0b91cd62185d1ba9a Mon Sep 17 00:00:00 2001 From: Georg Richter Date: Sat, 13 Aug 2022 10:25:11 +0200 Subject: [PATCH] is_closed was renamed to _closed. --- mariadb/cursors.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mariadb/cursors.py b/mariadb/cursors.py index 9eb8b85..45f0b72 100644 --- a/mariadb/cursors.py +++ b/mariadb/cursors.py @@ -396,7 +396,7 @@ def close(self): (or subclass) exception will be raised if any operation is attempted with the cursor." """ - if not self.connection.is_closed: + if not self.connection._closed: super().close() def fetchone(self):