diff --git a/pyracing/client.py b/pyracing/client.py index ba6a715..82a9159 100644 --- a/pyracing/client.py +++ b/pyracing/client.py @@ -782,3 +782,4 @@ async def yearly_stats(self, cust_id): return [] return [career_stats.YearlyStats(x) for x in response.json()] + def cleanup_payload(payload): 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('+', ' ')