@@ -185,7 +185,7 @@ def is_connected(self):
185185 return True
186186
187187 @staticmethod
188- def __execute_query (cursor , query , args , cursor_class , suppress_warnings ):
188+ def _execute_query (cursor , query , args , cursor_class , suppress_warnings ):
189189 try :
190190 with warnings .catch_warnings ():
191191 if suppress_warnings :
@@ -211,7 +211,7 @@ def query(self, query, args=(), *, as_dict=False, suppress_warnings=True, reconn
211211 cursor_class = client .cursors .DictCursor if as_dict else client .cursors .Cursor
212212 cursor = self ._conn .cursor (cursor = cursor_class )
213213 try :
214- self .__execute_query (cursor , query , args , cursor_class , suppress_warnings )
214+ self ._execute_query (cursor , query , args , cursor_class , suppress_warnings )
215215 except errors .LostConnectionError :
216216 if not reconnect :
217217 raise
@@ -222,7 +222,7 @@ def query(self, query, args=(), *, as_dict=False, suppress_warnings=True, reconn
222222 raise errors .LostConnectionError ("Connection was lost during a transaction." ) from None
223223 logger .debug ("Re-executing" )
224224 cursor = self ._conn .cursor (cursor = cursor_class )
225- self .__execute_query (cursor , query , args , cursor_class , suppress_warnings )
225+ self ._execute_query (cursor , query , args , cursor_class , suppress_warnings )
226226 return cursor
227227
228228 def get_user (self ):
0 commit comments