about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2009-12-28 18:47:39 +0100
committerhut <hut@lavabit.com>2009-12-28 18:47:39 +0100
commit52afd1f460e9bcc2259f10d0fa40cf3938059a58 (patch)
tree646c0475d6bb5de8b4e6c68f765b2bee7e0e6612
parent1a8d64f1cc272cc8109f0c1490366026b411669c (diff)
downloadranger-52afd1f460e9bcc2259f10d0fa40cf3938059a58.tar.gz
clean ups
-rw-r--r--ranger/gui/widgets/console.py3
-rw-r--r--ranger/gui/widgets/filelistcontainer.py1
-rw-r--r--ranger/gui/widgets/notify.py1
-rw-r--r--ranger/gui/widgets/pager.py5
-rw-r--r--ranger/gui/widgets/process_manager.py1
-rw-r--r--ranger/gui/widgets/statusbar.py1
-rw-r--r--ranger/gui/widgets/titlebar.py3
7 files changed, 1 insertions, 14 deletions
diff --git a/ranger/gui/widgets/console.py b/ranger/gui/widgets/console.py
index 9abc2f7c..2d3f9b4c 100644
--- a/ranger/gui/widgets/console.py
+++ b/ranger/gui/widgets/console.py
@@ -1,7 +1,7 @@
 """The Console widget implements a vim-like console for entering
 commands, searching and executing files."""
 from . import Widget
-from ranger import commands, log
+from ranger import commands
 from ranger.gui.widgets.console_mode import is_valid_mode, mode_to_class
 import curses
 from collections import deque
@@ -456,7 +456,6 @@ class QuickOpenConsole(ConsoleWithTab):
 	def _get_tab(self):
 		if ' ' not in self.line:
 			all_apps = self.fm.apps.all()
-			log(all_apps)
 			if all_apps:
 				return (app for app in all_apps if app.startswith(self.line))
 
diff --git a/ranger/gui/widgets/filelistcontainer.py b/ranger/gui/widgets/filelistcontainer.py
index 53cbf064..494a3e0f 100644
--- a/ranger/gui/widgets/filelistcontainer.py
+++ b/ranger/gui/widgets/filelistcontainer.py
@@ -3,7 +3,6 @@ from . import Widget
 from .filelist import FileList
 from .pager import Pager
 from ..displayable import DisplayableContainer
-from ranger import log
 
 class FileListContainer(Widget, DisplayableContainer):
 	ratios = None
diff --git a/ranger/gui/widgets/notify.py b/ranger/gui/widgets/notify.py
index 2dc56fb1..bb159ea7 100644
--- a/ranger/gui/widgets/notify.py
+++ b/ranger/gui/widgets/notify.py
@@ -3,7 +3,6 @@
 from . import Widget
 from time import time
 from collections import deque
-from ranger import log
 
 class Notify(Widget):
 	requested_height = 0
diff --git a/ranger/gui/widgets/pager.py b/ranger/gui/widgets/pager.py
index ffcd06c5..2b8d73a4 100644
--- a/ranger/gui/widgets/pager.py
+++ b/ranger/gui/widgets/pager.py
@@ -1,7 +1,6 @@
 """
 The pager displays text and allows you to scroll inside it.
 """
-from ranger import log
 from . import Widget
 from ranger.container.commandlist import CommandList
 from ranger.ext.move import move_between
@@ -54,14 +53,10 @@ class Pager(Widget):
 			i += relative
 
 		length = len(self.lines) - self.hei - 1
-		log('before: ' + str(length))
-
 		if i >= length:
 			self._get_line(i+self.hei)
 
 		length = len(self.lines) - self.hei - 1
-		log('after: ' + str(length))
-
 		if i >= length:
 			i = length
 
diff --git a/ranger/gui/widgets/process_manager.py b/ranger/gui/widgets/process_manager.py
index baf4f2ba..f0954a9e 100644
--- a/ranger/gui/widgets/process_manager.py
+++ b/ranger/gui/widgets/process_manager.py
@@ -6,7 +6,6 @@ import curses
 
 from . import Widget
 from ranger.ext.accumulator import Accumulator
-from ranger import log
 from ranger.container import CommandList
 from collections import deque
 
diff --git a/ranger/gui/widgets/statusbar.py b/ranger/gui/widgets/statusbar.py
index 741e80fd..4cfbea7b 100644
--- a/ranger/gui/widgets/statusbar.py
+++ b/ranger/gui/widgets/statusbar.py
@@ -4,7 +4,6 @@ some additional info about the current directory on the right side.
 """
 
 from . import Widget
-from ranger import log
 from pwd import getpwuid
 from grp import getgrgid
 from os import getuid
diff --git a/ranger/gui/widgets/titlebar.py b/ranger/gui/widgets/titlebar.py
index 9e370b72..f3377d08 100644
--- a/ranger/gui/widgets/titlebar.py
+++ b/ranger/gui/widgets/titlebar.py
@@ -2,7 +2,6 @@
 information."""
 
 from . import Widget
-from ranger import log
 from math import floor
 
 class TitleBar(Widget):
@@ -126,9 +125,7 @@ class Bar(object):
 		rightsize = self.right.sumsize()
 		nonfixed_items = self.left.nonfixed_items()
 
-#		log(leftsize, fixedsize, nonfixed_items)
 		itemsize = int(float(wid - rightsize - fixedsize) / nonfixed_items) + 1
-#		log(itemsize)
 
 		for item in self.left:
 			if not item.fixed: