Skip to content

Commit

Permalink
Remove unused class in commands/load.py
Browse files Browse the repository at this point in the history
There was an unused UI wrapper class in the commands/load.py module.
This was a leftover from testrepository and not used anywhere. Before we
commit the commands interface to be a stable external interface we
should remove this.
  • Loading branch information
mtreinish committed Jul 25, 2017
1 parent 5658192 commit c63ed13
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions stestr/commands/load.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,27 +54,6 @@ def get_cli_help():
return help_str


class InputToStreamResult(object):
"""Generate Stream events from stdin.
Really a UI responsibility?
"""

def __init__(self, stream):
self.source = stream
self.stop = False

def run(self, result):
while True:
if self.stop:
return
char = self.source.read(1)
if not char:
return
if char == b'a':
result.status(test_id='stdin', test_status='fail')


def run(arguments):
load(arguments)

Expand Down

0 comments on commit c63ed13

Please sign in to comment.