CR fixes
This commit is contained in:
parent
a919b87664
commit
eb4638a326
@ -32,5 +32,5 @@ TRANSPORT_MODE_TO_TOMTOM = {
|
||||
DEFAULT_ROUTE_TYPE = ROUTE_TYPE_SHORT
|
||||
MODE_TYPE_TO_TOMTOM = {
|
||||
'shortest': ROUTE_TYPE_SHORT,
|
||||
'fastest': ROUTE_TYPE_SHORT
|
||||
'fastest': ROUTE_TYPE_FAST
|
||||
}
|
||||
|
@ -5,5 +5,4 @@ def normalize(str_input):
|
||||
.replace(';', ',')
|
||||
|
||||
def options_to_dict(options):
|
||||
options_list = list(chain(*[option.split('=') for option in options]))
|
||||
return dict(zip(options_list[::2],options_list[1::2]))
|
||||
return dict(option.split("=") for option in options)
|
||||
|
Loading…
Reference in New Issue
Block a user