Skip to content

Commit

Permalink
for consistency change output to port
Browse files Browse the repository at this point in the history
  • Loading branch information
bwhmather committed Jan 23, 2015
1 parent c01bf60 commit b26ca4f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions linemode/drivers/command_list.py
Expand Up @@ -26,24 +26,24 @@ def compile(commands):


class CommandListPrinter(Printer):
def __init__(self, output):
self.output = output
def __init__(self, port):
self._port = port

def compile(self, commands):
return compile(commands)

def execute(self, program):
self.output.write(program)
self._port.write(program)

def shutdown(self):
self.output.close()
self._port.close()


def open_file(uri):
uri_parts = urlparse(uri)
output = open(uri_parts.path, 'wb')
port = open(uri_parts.path, 'wb')

return CommandListPrinter(output)
return CommandListPrinter(port)


def open_stdout(uri):
Expand Down

0 comments on commit b26ca4f

Please sign in to comment.