Skip to content

Commit

Permalink
is_closed was renamed to _closed.
Browse files Browse the repository at this point in the history
  • Loading branch information
9EOR9 committed Aug 13, 2022
1 parent 554abda commit 336bf34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mariadb/cursors.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 336bf34

Please sign in to comment.