mirror of https://gitlab.com/ita1024/waf.git
Add the 'errors' attribute to AnsiTerm
When using input in Python3 an exception is thrown because the AnsiTerm does not have the errors attribute. This patch fixes that. Signed-off-by: Thomas Nagy <tnagy2pow10@gmail.com>
This commit is contained in:
parent
4b03c35660
commit
f550175c7f
|
@ -23,6 +23,7 @@ except ImportError:
|
||||||
class AnsiTerm(object):
|
class AnsiTerm(object):
|
||||||
def __init__(self, stream):
|
def __init__(self, stream):
|
||||||
self.stream = stream
|
self.stream = stream
|
||||||
|
self.errors = self.stream.errors
|
||||||
self.encoding = self.stream.encoding
|
self.encoding = self.stream.encoding
|
||||||
|
|
||||||
def write(self, txt):
|
def write(self, txt):
|
||||||
|
@ -86,6 +87,7 @@ else:
|
||||||
"""
|
"""
|
||||||
def __init__(self, s):
|
def __init__(self, s):
|
||||||
self.stream = s
|
self.stream = s
|
||||||
|
self.errors = s.errors
|
||||||
self.encoding = s.encoding
|
self.encoding = s.encoding
|
||||||
self.cursor_history = []
|
self.cursor_history = []
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue