Rename __default__ searchengine to DEFAULT

This commit is contained in:
Florian Bruhin 2014-02-10 07:07:32 +01:00
parent 1af78272bb
commit 95b295745b
2 changed files with 2 additions and 2 deletions

View File

@ -44,13 +44,13 @@ addressbar_dns_lookup = false
auto_search = true
[searchengines]
DEFAULT = ${duckduckgo}
duckduckgo = https://duckduckgo.com/?q={}
ddg = ${duckduckgo}
google = https://encrypted.google.com/search?q={}
g = ${google}
wikipedia = http://en.wikipedia.org/w/index.php?title=Special:Search&search={}
wiki = ${wikipedia}
__default__ = ${duckduckgo}
[keybind]
o = open

View File

@ -59,7 +59,7 @@ def _get_search_url(txt):
term = r.sub('', txt)
logging.debug('engine {}, term "{}"'.format(engine, term))
else:
template = config.config.get('searchengines', '__default__',
template = config.config.get('searchengines', 'DEFAULT',
fallback=None)
term = txt
logging.debug('engine: default, term "{}"'.format(txt))