Skip to content

Commit e934bc8

Browse files
author
Doug Brown
committed
Making stream.py work without modification
1 parent d44c2af commit e934bc8

File tree

1 file changed

+2
-1
lines changed
  • examples/searchcommands_template/bin

1 file changed

+2
-1
lines changed

examples/searchcommands_template/bin/stream.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ class %(command.title())Command(StreamingCommand):
2020
"""
2121
def stream(self, events):
2222
# Put your event transformation code here
23-
pass
23+
for event in events:
24+
yield event
2425

2526
dispatch(%(command.title())Command, sys.argv, sys.stdin, sys.stdout, __name__)

0 commit comments

Comments
 (0)