Steve Howell
79fb36c599
refactor: Extract maybe_add_event() function.
...
This change was partially driven by a quirk in Python
where peephole optimizations make `continue` lines
appear not to be covered.
I also think it's generally a good idiom to extract
functions for loop bodies when they don't actually
accumulate values or maintain other state. With this
commit we now prevent potential bugs for vars like
`is_stream` leaking between loop iterations.
2018-08-21 11:23:40 -07:00
..
2018-08-20 21:26:01 -07:00
2018-08-08 14:19:42 -07:00
2018-07-14 09:38:11 +05:30
2018-08-21 11:23:40 -07:00
2018-05-13 17:47:21 -07:00
2018-05-10 14:19:49 -07:00
2018-08-17 12:57:40 -07:00
2018-05-10 14:19:49 -07:00
2018-05-17 11:11:55 -07:00
2018-05-10 14:19:49 -07:00
2018-05-20 20:04:16 -07:00
2018-05-10 14:19:49 -07:00
2018-07-10 15:42:26 +05:30
2018-08-08 16:35:17 -07:00
2018-08-08 16:35:17 -07:00
2018-05-10 14:19:49 -07:00
2018-05-15 19:07:32 -07:00
2018-08-08 16:45:25 -07:00
2018-05-10 14:19:49 -07:00
2018-05-21 22:41:00 -07:00
2018-08-01 11:05:58 -07:00
2018-05-10 14:19:49 -07:00
2018-05-10 14:19:49 -07:00
2018-07-23 12:35:08 -07:00
2018-07-26 09:27:55 -07:00
2018-08-21 11:20:59 -07:00
2018-07-09 15:45:45 +05:30
2018-07-30 22:32:26 -07:00
2018-05-12 15:22:39 -07:00
2018-05-10 14:19:49 -07:00
2018-05-10 14:19:49 -07:00
2018-06-16 08:50:49 -07:00
2018-05-30 08:57:26 -07:00
2018-08-10 16:20:36 -07:00
2018-05-10 14:19:49 -07:00
2018-07-01 04:01:17 -07:00
2018-03-21 18:03:05 -07:00
2018-08-17 09:20:51 -07:00
2018-05-12 15:22:39 -07:00
2018-08-09 15:12:53 -07:00
2018-05-31 13:00:34 -07:00
2018-08-08 16:45:40 -07:00
2018-08-13 10:56:47 -07:00
2018-05-21 08:45:48 -07:00
2018-08-20 12:52:40 -07:00
2018-05-23 11:53:22 +05:30
2018-08-08 14:19:42 -07:00
2018-08-09 17:44:26 -07:00
2018-08-10 13:58:39 -07:00
2018-03-28 10:39:05 -07:00
2018-05-12 15:22:39 -07:00
2018-05-10 14:19:49 -07:00
2018-05-03 21:11:02 -07:00
2018-05-14 05:16:22 +05:30
2018-05-10 14:19:49 -07:00
2018-04-13 17:51:45 -07:00
2018-07-12 12:30:20 +05:30
2018-05-10 14:19:49 -07:00
2018-07-10 15:42:26 +05:30
2018-05-21 22:41:00 -07:00
2018-07-24 09:42:25 -07:00
2018-05-15 19:11:22 -07:00
2018-05-12 15:22:39 -07:00
2018-08-07 13:28:30 -07:00
2018-07-03 16:54:46 +02:00
2018-08-10 13:58:39 -07:00
2018-07-09 14:17:53 +05:30
2018-08-01 16:48:31 -07:00
2018-05-12 15:22:39 -07:00
2018-07-03 16:54:46 +02:00
2018-08-10 17:17:50 -07:00
2018-04-25 08:58:55 -07:00
2018-05-10 14:19:49 -07:00
2018-05-12 15:22:39 -07:00
2018-05-10 14:19:49 -07:00
2018-06-16 09:37:49 -07:00
2018-08-03 15:56:40 -07:00
2018-08-04 11:46:58 -07:00
2018-07-28 15:12:55 -07:00
2018-04-19 21:50:17 -07:00
2018-05-10 14:19:49 -07:00
2018-08-08 16:35:17 -07:00
2018-08-08 16:45:25 -07:00
2018-05-24 11:31:36 -07:00
2018-08-08 16:49:27 -07:00
2018-08-08 11:29:49 -07:00
2018-08-11 14:51:26 -07:00