Skip to content

Commit 17a0357

Browse files
committed
for..else flow control
1 parent 0ccd407 commit 17a0357

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pymysqlreplication/binlogstream.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,8 @@ def __filter_event(self, event):
267267
for allowed_event in self.__only_events:
268268
if isinstance(event, allowed_event):
269269
return False
270-
return True
270+
else:
271+
return True
271272

272273
return False
273274

0 commit comments

Comments
 (0)