We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7929e5f commit 3725e8dCopy full SHA for 3725e8d
pymysqlreplication/binlogstream.py
@@ -114,7 +114,7 @@ def __connect_to_stream(self):
114
prelude += struct.pack('<I', self.__server_id)
115
prelude += self.log_file.encode()
116
117
- if pymysql.VERSION < (0, 6, None):
+ if pymysql.__version__ < "0.6":
118
self._stream_connection.wfile.write(prelude)
119
self._stream_connection.wfile.flush()
120
else:
@@ -130,7 +130,7 @@ def fetchone(self):
130
self.__connect_to_ctl()
131
132
try:
133
134
pkt = self._stream_connection.read_packet()
135
136
pkt = self._stream_connection._read_packet()
0 commit comments