Fix spelling.

This commit is contained in:
Florian Bruhin 2015-12-20 17:39:36 +01:00
parent 84ed602b8d
commit ffc76b2a5c

View File

@ -63,17 +63,17 @@ def _parse_search_term(s):
A (engine, term) tuple, where engine is None for the default engine. A (engine, term) tuple, where engine is None for the default engine.
""" """
s = s.strip() s = s.strip()
splitted = s.split(maxsplit=1) split = s.split(maxsplit=1)
if len(splitted) == 2: if len(split) == 2:
engine = splitted[0] engine = split[0]
try: try:
config.get('searchengines', engine) config.get('searchengines', engine)
except configexc.NoOptionError: except configexc.NoOptionError:
engine = None engine = None
term = s term = s
else: else:
term = splitted[1] term = split[1]
else: else:
engine = None engine = None
term = s term = s