Skip to content

Commit cf4678a

Browse files
author
Lior Sion
committed
changed null event name to NotImplementedEvent
1 parent c254f02 commit cf4678a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pymysqlreplication/event.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def _dump(self):
9999
print("Execution time: %d" % (self.execution_time))
100100
print("Query: %s" % (self.query))
101101

102-
class NullEvent(BinLogEvent):
102+
class NotImplementedEvent(BinLogEvent):
103103
def __init__(self, from_packet, event_size, table_map, ctl_connection, log_persistancer = None):
104104
super(NullEvent, self).__init__(from_packet, event_size, table_map, ctl_connection, log_persistancer)
105105
self.packet.advance(event_size)

pymysqlreplication/packet.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ class BinLogPacketWrapper(object):
3535
ROTATE_EVENT: RotateEvent,
3636
FORMAT_DESCRIPTION_EVENT: FormatDescriptionEvent,
3737
XID_EVENT: XidEvent,
38-
INTVAR_EVENT: NullEvent,
39-
GTID_LOG_EVENT: NullEvent
38+
INTVAR_EVENT: NotImplementedEvent,
39+
GTID_LOG_EVENT: NotImplementedEvent
4040
}
4141

4242
def __init__(self, from_packet, table_map, ctl_connection):

0 commit comments

Comments
 (0)