# HG changeset patch # User kylev # Date 1248395720 0 # Node ID 29b4cfd9af07a79d846ee27d2051a052b6e1fb68 # Parent 18e5892a5aed74d6c04652f75af6500dae268429 show_warnings was renamed show_warnings (bug 2796727) diff -r 18e5892a5aed -r 29b4cfd9af07 MySQLdb/cursors.py --- a/MySQLdb/cursors.py Fri Jul 24 00:27:38 2009 +0000 +++ b/MySQLdb/cursors.py Fri Jul 24 00:35:20 2009 +0000 @@ -87,7 +87,7 @@ """Check for warnings, and report via the warnings module.""" from warnings import warn if self._warnings: - warnings = self._get_db().show_warnings() + warnings = self._get_db()._show_warnings() if warnings: # This is done in two loops in case # Warnings are set to raise exceptions. @@ -107,7 +107,7 @@ if self._executed: self.fetchall() del self.messages[:] - + connection = self._get_db() num_rows = connection.next_result() if num_rows == -1: