summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--ranger/ext/openstruct.py25
-rw-r--r--ranger/gui/colorscheme.py1
2 files changed, 5 insertions, 21 deletions
diff --git a/ranger/ext/openstruct.py b/ranger/ext/openstruct.py
index 56f7de06..11363127 100644
--- a/ranger/ext/openstruct.py
+++ b/ranger/ext/openstruct.py
@@ -13,23 +13,8 @@
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-class OpenStruct(object):
-	def __init__(self, __dictionary=None, **__keywords):
-		if __dictionary:
-			self.__dict__.update(__dictionary)
-		if __keywords:
-			self.__dict__.update(__keywords)
-
-	def __getitem__(self, key):
-		return self.__dict__[key]
-
-	def __setitem__(self, key, value):
-		self.__dict__[key] = value
-		return value
-
-	def __contains__(self, key):
-		return key in self.__dict__
-
-class ReferencedOpenStruct(OpenStruct):
-	def __init__(self, dictionary):
-		self.__dict__ = dictionary
+class OpenStruct(dict):
+	"""The fusion of dict and struct"""
+	def __init__(self, *args, **keywords):
+		dict.__init__(self, *args, **keywords)
+		self.__dict__ = self
diff --git a/ranger/gui/colorscheme.py b/ranger/gui/colorscheme.py
index 867aec70..99ea6ff7 100644
--- a/ranger/gui/colorscheme.py
+++ b/ranger/gui/colorscheme.py
@@ -41,7 +41,6 @@ If your colorscheme-file contains more than one colorscheme, specify it with:
 colorscheme = colorschemes.filename.classname
 """
 
-from ranger.ext.openstruct import ReferencedOpenStruct
 from curses import color_pair
 from ranger.gui.color import get_color
 from ranger.gui.context import Context
>
81190251 ^

f3fe1d34 ^

3bb1f124 ^
f3fe1d34 ^


81190251 ^
f3fe1d34 ^
f3fe1d34 ^
















a94814f0 ^

a94814f0 ^

3bb1f124 ^
a94814f0 ^



81190251 ^
a94814f0 ^
a94814f0 ^

baf46c6a ^






baf46c6a ^
6af10696 ^
7df7e056 ^
baf46c6a ^


3bb1f124 ^
88f423af ^
baf46c6a ^
aa4ffa7e ^





baf46c6a ^
81190251 ^
baf46c6a ^
baf46c6a ^

dd1ee18c ^
f3fe1d34 ^
dd1ee18c ^


dd1ee18c ^
6af10696 ^
7df7e056 ^
f3fe1d34 ^
dd1ee18c ^
f3fe1d34 ^
3bb1f124 ^
88f423af ^
aa4ffa7e ^


f3fe1d34 ^
aa4ffa7e ^


baf46c6a ^
81190251 ^
f3fe1d34 ^
f3fe1d34 ^
bafc0f25 ^



2c15aba9 ^
bafc0f25 ^
bafc0f25 ^
6af10696 ^
7df7e056 ^
bafc0f25 ^


3bb1f124 ^
88f423af ^
bafc0f25 ^
aa4ffa7e ^





bafc0f25 ^
81190251 ^
bafc0f25 ^
bafc0f25 ^
15fce2cf ^








22ab2686 ^
6af10696 ^
7df7e056 ^
15fce2cf ^


3bb1f124 ^
88f423af ^
aa4ffa7e ^


15fce2cf ^
aa4ffa7e ^


15fce2cf ^
81190251 ^
15fce2cf ^
15fce2cf ^
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162