summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--ranger/core/fm.py7
-rw-r--r--ranger/core/helper.py3
-rw-r--r--ranger/core/main.py3
3 files changed, 5 insertions, 8 deletions
diff --git a/ranger/core/fm.py b/ranger/core/fm.py
index 7858c67e..f2366613 100644
--- a/ranger/core/fm.py
+++ b/ranger/core/fm.py
@@ -13,7 +13,6 @@ import stat
 import sys
 
 import ranger
-from ranger import *
 from ranger.core.actions import Actions
 from ranger.container.tags import Tags
 from ranger.gui.ui import UI
@@ -200,10 +199,10 @@ class FM(Actions, SignalDispatcher):
 							zombies.remove(zombie)
 
 				gc_tick += 1
-				if gc_tick > TICKS_BEFORE_COLLECTING_GARBAGE:
+				if gc_tick > ranger.TICKS_BEFORE_COLLECTING_GARBAGE:
 					gc_tick = 0
-					env.garbage_collect(TIME_BEFORE_FILE_BECOMES_GARBAGE,
-							self.tabs)
+					env.garbage_collect(
+						ranger.TIME_BEFORE_FILE_BECOMES_GARBAGE, self.tabs)
 
 		except KeyboardInterrupt:
 			# this only happens in --debug mode. By default, interrupts
diff --git a/ranger/core/helper.py b/ranger/core/helper.py
index 31fa8623..233f1b8a 100644
--- a/ranger/core/helper.py
+++ b/ranger/core/helper.py
@@ -6,12 +6,11 @@
 from errno import EEXIST
 import os.path
 import sys
-from ranger import *
+from ranger import CONFDIR, USAGE, STABLE, __version__
 
 def parse_arguments():
 	"""Parse the program arguments"""
 	from optparse import OptionParser
-	from ranger import __version__
 	from ranger.ext.openstruct import OpenStruct
 	from os.path import expanduser
 
diff --git a/ranger/core/main.py b/ranger/core/main.py
index 8e6b9da5..37cdc586 100644
--- a/ranger/core/main.py
+++ b/ranger/core/main.py
@@ -5,8 +5,6 @@
 The main function responsible to initialize the FM object and stuff.
 """
 
-from ranger.core.helper import *
-
 def main():
 	"""initialize objects and run the filemanager"""
 	import locale
@@ -16,6 +14,7 @@ def main():
 	from ranger.core.shared import (EnvironmentAware, FileManagerAware,
 			SettingsAware)
 	from ranger.core.fm import FM
+	from ranger.core.helper import parse_arguments, load_settings
 
 	if not sys.stdin.isatty():
 		sys.stderr.write("Error: Must run ranger from terminal\n")
ision' href='/akspecs/ranger/blame/Makefile?id=cb116bf0dc119977f69f3146c786b09315ac9c50'>^
3a1e1f28 ^
b0a216f5 ^


b06433bc ^
2c5ea01d ^
b0a216f5 ^

2c5ea01d ^
2c5ea01d ^
2c5ea01d ^
582f3519 ^
b06433bc ^
582f3519 ^

94c5d83e ^
dee6cfa6 ^
e9e4b4ff ^
b0a216f5 ^


e9e4b4ff ^





ad75190c ^
e9e4b4ff ^
e9e4b4ff ^
25a4162d ^
e9e4b4ff ^
fde932f2 ^
85fd5288 ^
4ade06a6 ^

85fd5288 ^
0c2c782d ^

636d9393 ^
b0a216f5 ^
b06433bc ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78