summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-03-19 14:41:02 +0100
committerhut <hut@lavabit.com>2010-03-19 14:41:02 +0100
commit1fbf9b98a3a158512bfc9127bfccecd13cfa8f08 (patch)
tree8734fbe4ec3dc696b6f15914dd96d05d4aa80b90
parent9306d98f3bd0a6927e1426c0614cb6c2864274a3 (diff)
downloadranger-1fbf9b98a3a158512bfc9127bfccecd13cfa8f08.tar.gz
gui.ui: import os in the top level of the module
-rw-r--r--ranger/gui/ui.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/ranger/gui/ui.py b/ranger/gui/ui.py
index b073c2e0..7f975f90 100644
--- a/ranger/gui/ui.py
+++ b/ranger/gui/ui.py
@@ -13,6 +13,7 @@
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
+import os
 import socket
 import sys
 import curses
@@ -31,9 +32,8 @@ class UI(DisplayableContainer):
 	mousemask = curses.ALL_MOUSE_EVENTS | curses.REPORT_MOUSE_POSITION
 	load_mode = False
 	def __init__(self, commandlist=None, env=None, fm=None):
-		from os import environ
-		self._draw_title = environ["TERM"] in TERMINALS_WITH_TITLE
-		environ['ESCDELAY'] = '25'   # don't know a cleaner way
+		self._draw_title = os.environ["TERM"] in TERMINALS_WITH_TITLE
+		os.environ['ESCDELAY'] = '25'   # don't know a cleaner way
 
 		if env is not None:
 			self.env = env