diff options
author | hut <hut@lavabit.com> | 2010-04-18 17:36:11 +0200 |
---|---|---|
committer | hut <hut@lavabit.com> | 2010-04-18 17:36:11 +0200 |
commit | 24ee792b2cc20dc7bdfbe66bd81080941b808659 (patch) | |
tree | 315c0605958974afa3c7007b1f771a910e0cf41a /ranger | |
parent | c7a36d0a281ddac8ea7a7e12924c751482234b1d (diff) | |
download | ranger-24ee792b2cc20dc7bdfbe66bd81080941b808659.tar.gz |
container.keymap: removed __getitem__ from KeyManager
Diffstat (limited to 'ranger')
-rw-r--r-- | ranger/container/keymap.py | 1 | ||||
-rw-r--r-- | ranger/defaults/keys.py | 2 |
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) |