Skip to content

Commit 79efaf7

Browse files
committed
remove default server_id as discussed in julien-duponchelle#80
connection_settings was also changed to arg since it's essential and kwargs default value should not be mutable.
1 parent d01e4b0 commit 79efaf7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pymysqlreplication/binlogstream.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ class BinLogStreamReader(object):
2626
"""Connect to replication stream and read event
2727
"""
2828

29-
def __init__(self, connection_settings={}, resume_stream=False,
30-
blocking=False, only_events=None, server_id=255,
31-
log_file=None, log_pos=None, filter_non_implemented_events=True,
29+
def __init__(self, connection_settings, server_id, resume_stream=False,
30+
blocking=False, only_events=None, log_file=None, log_pos=None,
31+
filter_non_implemented_events=True,
3232
ignored_events=None, auto_position=None):
3333
"""
3434
Attributes:

0 commit comments

Comments
 (0)