Skip to content

Commit

Permalink
improved parse_encode check
Browse files Browse the repository at this point in the history
  • Loading branch information
NoHeDidnt committed Jul 29, 2020
1 parent b92e04f commit 7f53465
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pyracing/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ def now_five_min_floor():


def parse_encode(string):
if not type(string) is str:
if not isinstance(string, str):
return ''

return urllib.parse.unquote(string).replace('+', ' ')

1 comment on commit 7f53465

@NoHeDidnt
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be an even better way to check if the input is a string

Please sign in to comment.