summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjquast <contact@jeffquast.com>2013-09-07 12:11:38 -0400
committerjquast <contact@jeffquast.com>2013-09-07 12:11:38 -0400
commit07716adddd303c01975e6b20a9c928bcde04f7d9 (patch)
treef8dd858f4fc935fede9869b84b30be2843ba5aab
parent0ec94b6ffa775c950e22d650b10a62412d6cd36f (diff)
downloadblessings-07716adddd303c01975e6b20a9c928bcde04f7d9.tar.gz
'os' imported but unused
-rw-r--r--blessings/__init__.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/blessings/__init__.py b/blessings/__init__.py
index dab2f27..9e97e5b 100644
--- a/blessings/__init__.py
+++ b/blessings/__init__.py
@@ -9,7 +9,6 @@ except ImportError:
"""A dummy exception to take the place of Python 3's
``io.UnsupportedOperation`` in Python 2"""
import os
-from os import isatty, environ
from platform import python_version_tuple
import struct
import sys
@@ -88,7 +87,7 @@ class Terminal(object):
stream_descriptor = None
self.is_a_tty = (stream_descriptor is not None and
- isatty(stream_descriptor))
+ os.isatty(stream_descriptor))
self.does_styling = ((self.is_a_tty or force_styling) and
force_styling is not None)
@@ -104,7 +103,7 @@ class Terminal(object):
# init sequences to the stream if it has a file descriptor, and
# send them to stdout as a fallback, since they have to go
# somewhere.
- setupterm(kind or environ.get('TERM', 'unknown'),
+ setupterm(kind or os.environ.get('TERM', 'unknown'),
self._init_descriptor)
self.stream = stream