From 4d04125fa1afa723ab71f30733bfcf02f9949b8b Mon Sep 17 00:00:00 2001 From: Jin Liu Date: Tue, 23 Aug 2016 18:40:37 +0800 Subject: [PATCH] fish_config: capitalize keynames to match parser output --- share/tools/web_config/webconfig.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/share/tools/web_config/webconfig.py b/share/tools/web_config/webconfig.py index 78e7adfbc..bb570ea5d 100755 --- a/share/tools/web_config/webconfig.py +++ b/share/tools/web_config/webconfig.py @@ -398,7 +398,7 @@ class BindingParser: """ Gets a readable representation of binding """ try: - result = BindingParser.readable_keys[self.buffer] + result = BindingParser.readable_keys[self.buffer.lower()] except KeyError: result = self.parse_binding() @@ -599,7 +599,7 @@ class FishConfigHTTPRequestHandler(SimpleHTTPServer.SimpleHTTPRequestHandler): if comps[1] == '-k': key_name, command = comps[2].split(' ', 1) - binding_parser.set_buffer(key_name) + binding_parser.set_buffer(key_name.capitalize()) else: key_name = None command = comps[2]