summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--ranger/gui/displayable.py5
-rw-r--r--ranger/gui/widgets/console.py4
-rw-r--r--test/__init__.py3
-rw-r--r--test/tc_directory.py5
-rw-r--r--test/tc_history.py5
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
href='#n252'>252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427