summary refs log tree commit diff stats
path: root/ranger
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-04-18 17:36:11 +0200
committerhut <hut@lavabit.com>2010-04-18 17:36:11 +0200
commit24ee792b2cc20dc7bdfbe66bd81080941b808659 (patch)
tree315c0605958974afa3c7007b1f771a910e0cf41a /ranger
parentc7a36d0a281ddac8ea7a7e12924c751482234b1d (diff)
downloadranger-24ee792b2cc20dc7bdfbe66bd81080941b808659.tar.gz
container.keymap: removed __getitem__ from KeyManager
Diffstat (limited to 'ranger')
-rw-r--r--ranger/container/keymap.py1
-rw-r--r--ranger/defaults/keys.py2
2 files changed, 1 insertions, 2 deletions
diff --git a/ranger/container/keymap.py b/ranger/container/keymap.py
index e44fcfd7..d52a5215 100644
--- a/ranger/container/keymap.py
+++ b/ranger/container/keymap.py
@@ -134,7 +134,6 @@ class KeyManager(object):
 		assert isinstance(context, str)
 		assert context in self.contexts, "no such context: " + context
 		return self.contexts[context]
-	__getitem__ = get_context
 
 	def use_context(self, context):
 		context = self.get_context(context)
diff --git a/ranger/defaults/keys.py b/ranger/defaults/keys.py
index 593bfbbc..28028944 100644
--- a/ranger/defaults/keys.py
+++ b/ranger/defaults/keys.py
@@ -110,7 +110,7 @@ map.dir('<C-H>', alias='<backspace>')
 # ===================================================================
 # == Define keys in "browser" context:
 # ===================================================================
-map = keymanager['browser']
+map = keymanager.get_context('browser')
 map.merge(global_keys)
 map.merge(vim_aliases)
 
/a> 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173