From 7f53465d83f6a9852d0cb45f3a567ffacc5fa206 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20R=C3=B6hrig?= Date: Wed, 29 Jul 2020 12:04:51 +0200 Subject: [PATCH] improved parse_encode check --- pyracing/helpers.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pyracing/helpers.py b/pyracing/helpers.py index 5319fe0..25af86f 100644 --- a/pyracing/helpers.py +++ b/pyracing/helpers.py @@ -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('+', ' ')