Skip to content
1 change: 1 addition & 0 deletions pyracing/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
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('+', ' ')