mirror of
https://gitlab.com/ita1024/waf.git
synced 2025-01-26 18:20:22 +01:00
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):
|
||||
def __init__(self, stream):
|
||||
self.stream = stream
|
||||
self.errors = self.stream.errors
|
||||
self.encoding = self.stream.encoding
|
||||
|
||||
def write(self, txt):
|
||||
@ -86,6 +87,7 @@ else:
|
||||
"""
|
||||
def __init__(self, s):
|
||||
self.stream = s
|
||||
self.errors = s.errors
|
||||
self.encoding = s.encoding
|
||||
self.cursor_history = []
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user