This repository has been archived on 2015-04-29. You can view files and clone it, but cannot push or open issues or pull requests.
psh/formatters.py
2015-02-26 16:22:21 -05:00

14 lines
394 B
Python

from commands import BaseCommand
class Printer(BaseCommand):
"""Simple formatter which accepts any object from the input
generator and simply prints it as if it were a string."""
def call(self):
input_generator = self.get_input_generator()
for node in input_generator:
line = node.data
print(str(line.decode('utf-8')))
return None