diff options
author | hut <hut@lavabit.com> | 2009-12-11 23:39:45 +0100 |
---|---|---|
committer | hut <hut@lavabit.com> | 2009-12-11 23:39:45 +0100 |
commit | 649a69cb87af38f4bf1848085d49d1193f6e01ab (patch) | |
tree | 1bd56b79daf5af576f38a447b0264bce2a880f52 | |
parent | 084a0743189363c8c03aae1fe6766ae92a4469a3 (diff) | |
download | ranger-649a69cb87af38f4bf1848085d49d1193f6e01ab.tar.gz |
clean ups
-rw-r--r-- | ranger/gui/displayable.py | 5 | ||||
-rw-r--r-- | ranger/gui/widgets/console.py | 4 | ||||
-rw-r--r-- | test/__init__.py | 3 | ||||
-rw-r--r-- | test/tc_directory.py | 5 | ||||
-rw-r--r-- | test/tc_history.py | 5 |
5 files changed, 7 insertions, 15 deletions
diff --git a/ranger/gui/displayable.py b/ranger/gui/displayable.py index 4ac8c3fc..d9f56076 100644 --- a/ranger/gui/displayable.py +++ b/ranger/gui/displayable.py @@ -147,11 +147,6 @@ class DisplayableContainer(Displayable): for displayable in self.container: displayable.destroy() -# def resize(self): -# """Recursively called on objects in container""" -# for displayable in container: -# displayable.resize() - class OutOfBoundsException(Exception): pass diff --git a/ranger/gui/widgets/console.py b/ranger/gui/widgets/console.py index ab37d628..c7f3b29d 100644 --- a/ranger/gui/widgets/console.py +++ b/ranger/gui/widgets/console.py @@ -1,5 +1,5 @@ -"""The Console widget implements a vim-like console for entering commands, -searching and executing files.""" +"""The Console widget implements a vim-like console for entering +commands, searching and executing files.""" from ..displayable import Displayable import curses diff --git a/test/__init__.py b/test/__init__.py index 4f1c736a..500d3383 100644 --- a/test/__init__.py +++ b/test/__init__.py @@ -3,3 +3,6 @@ import os, sys __all__ = [ x[0:x.index('.')] \ for x in os.listdir(os.path.dirname(__file__)) \ if x.startswith('tc_') ] + +def init(): + sys.path.append(os.path.abspath(os.path.join(sys.path[0], '..'))) diff --git a/test/tc_directory.py b/test/tc_directory.py index 434d282f..cb8e747e 100644 --- a/test/tc_directory.py +++ b/test/tc_directory.py @@ -1,7 +1,4 @@ -if __name__ == '__main__': - from os.path import abspath, join - import sys - sys.path.append(abspath(join(sys.path[0], '..'))) +if __name__ == '__main__': from __init__ import init; init() from ranger import fsobject from ranger.fsobject.file import File diff --git a/test/tc_history.py b/test/tc_history.py index e78af0aa..ad340992 100644 --- a/test/tc_history.py +++ b/test/tc_history.py @@ -1,7 +1,4 @@ -if __name__ == '__main__': - from os.path import abspath, join - import sys - sys.path.append(abspath(join(sys.path[0], '..'))) +if __name__ == '__main__': from __init__ import init; init() from ranger.container import History from unittest import TestCase, main |