summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2011-10-15 00:39:18 +0200
committerhut <hut@lavabit.com>2011-10-15 00:39:18 +0200
commit9c37875e4cf983ec4dece175728d78350b7737c6 (patch)
treebf812da459545060742af34eee20cc2fb34aba03
parent531d8b2def5fcf43d70819c86fc612028ca98f4d (diff)
downloadranger-9c37875e4cf983ec4dece175728d78350b7737c6.tar.gz
ext.keybindings_parser: fixed --list-unused-keys
-rw-r--r--ranger/ext/keybinding_parser.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/ranger/ext/keybinding_parser.py b/ranger/ext/keybinding_parser.py
index d03d6ed1..295855fb 100644
--- a/ranger/ext/keybinding_parser.py
+++ b/ranger/ext/keybinding_parser.py
@@ -68,7 +68,7 @@ for n in range(64):
 
 special_keys.update(very_special_keys)
 del very_special_keys
-reverse_special_keys = dict((v, k) for k, v in special_keys.items())
+reversed_special_keys = dict((v, k) for k, v in special_keys.items())
 
 
 def parse_keybinding(obj):
@@ -129,8 +129,8 @@ def construct_keybinding(iterable):
 def key_to_string(key):
 	if key in range(33, 127):
 		return chr(key)
-	if key in reverse_special_keys:
-		return "<%s>" % reverse_special_keys[key]
+	if key in reversed_special_keys:
+		return "<%s>" % reversed_special_keys[key]
 	return "<%s>" % str(key)