File tree Expand file tree Collapse file tree 3 files changed +8
-5
lines changed Expand file tree Collapse file tree 3 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -599,10 +599,11 @@ def fetchone(self):
599599 if code in MYSQL_EXPECTED_ERROR_CODES :
600600 self ._stream_connection .close ()
601601 self .__connected_stream = False
602- logging .WARN (
602+ logging .log (
603+ logging .WARN ,
603604 """
604605 A pymysql.OperationalError error occurred, Re-request the connection.
605- """
606+ """ ,
606607 )
607608 continue
608609 raise
@@ -687,9 +688,9 @@ def fetchone(self):
687688 binlog_event .event_type == TABLE_MAP_EVENT
688689 and binlog_event .event is not None
689690 ):
690- self .table_map [
691- binlog_event .event .table_id
692- ] = binlog_event . event . get_table ( )
691+ self .table_map [binlog_event . event . table_id ] = (
692+ binlog_event .event .get_table ()
693+ )
693694
694695 # event is none if we have filter it on packet level
695696 # we filter also not allowed events
Original file line number Diff line number Diff line change 11"""Read binlog files"""
2+
23import struct
34
45from pymysqlreplication import constants
Original file line number Diff line number Diff line change 11"""Test abnormal conditions, such as caused by a MySQL crash
22"""
3+
34import os .path
45
56from pymysqlreplication .tests import base
You can’t perform that action at this time.
0 commit comments