From 9068e52c388014d805c9b20aacb57b1af7491858 Mon Sep 17 00:00:00 2001 From: jquast Date: Sat, 7 Sep 2013 22:36:54 -0400 Subject: is_a_tty property assignment fix -> _is_a_tty --- blessings/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blessings/__init__.py b/blessings/__init__.py index bb2af9b..673fa26 100644 --- a/blessings/__init__.py +++ b/blessings/__init__.py @@ -84,7 +84,7 @@ class Terminal(object): except IOUnsupportedOperation: stream_descriptor = None - self.is_a_tty = (stream_descriptor is not None and + self._is_a_tty = (stream_descriptor is not None and os.isatty(stream_descriptor)) self._does_styling = ((self.is_a_tty or force_styling) and force_styling is not None) -- cgit v1.2.1