summaryrefslogtreecommitdiff
path: root/modules/input_handlers/stdin_input.py
blob: 5c50511b207fc71ac2e3b79dafbc2dd7d7c94a06 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import sys

from modules.input_handlers.input_handler import InputHandler


class StdinInput(InputHandler):
    def cleanup(self):
        pass

    def get_input(self):
        for line in sys.stdin:
            line = line.strip()
            if not line:
                continue

            yield line