Skip to content
This repository was archived by the owner on Jun 29, 2023. It is now read-only.

Commit b3fea34

Browse files
authored
make condition more readable
1 parent 9c4d724 commit b3fea34

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mvg_api/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ def get_route(start, dest,
215215
options.append("maxTravelTimeFootwayToDestination=" +
216216
str(max_walk_time_to_dest))
217217

218-
if not change_limit is None: # 'if change_limit:' would not work for 0
218+
if change_limit is not None: # 'if change_limit:' would not work for 0
219219
if isinstance(change_limit, int):
220220
options.append("changeLimit=" + str(change_limit))
221221

0 commit comments

Comments
 (0)