Skip to content

Commit 03ba771

Browse files
james-emertonpgorczak
authored andcommitted
Add isatty() to ColoredStream
Some versions of pip expect sys.stdout to implement isatty(). This change prevents: "AttributeError: 'ColoredStream' object has no attribute 'isatty'"
1 parent b2a17e8 commit 03ba771

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

awslambda/deploy.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,10 @@ def write(self, msg):
3434

3535
def flush(self):
3636
self.__s.flush()
37-
37+
38+
def isatty(self):
39+
return self.__s.isatty()
40+
3841

3942
@contextmanager
4043
def do_thing(name):

0 commit comments

Comments
 (0)