Fix new stuff from tests to work with TreeNodes

This commit is contained in:
Ian Adam Naval 2015-03-03 12:14:20 -05:00
parent 0300da9ec1
commit e9d7f5f2b6
4 changed files with 4 additions and 5 deletions

View File

@ -1,6 +1,6 @@
from io import StringIO
from tree import TreeNode
from psh.tree import TreeNode
class BaseCommand(object):

View File

@ -1,6 +1,6 @@
from psh.commands import BaseCommand, register_cmd
from tree import TreeNode
from psh.tree import TreeNode
@register_cmd("example")

View File

@ -2,8 +2,7 @@ import shlex
from psh.formatters import Printer
from psh.commands import BaseCommand
from tree import TreeNode
from psh.tree import TreeNode
class RawCommand(BaseCommand):

View File

@ -14,7 +14,7 @@ class TestFormatter(BaseCommand):
def call(self):
input_generator = self.get_input_generator()
for line in input_generator:
self.buffer.write(line.decode('utf-8'))
self.buffer.write(line.data.decode('utf-8'))
return None
def get_data(self):