From 1c3ef2c173bbea2ddfc44c78abc0549bcb4c358f Mon Sep 17 00:00:00 2001 From: Daniel Nowak <13685818+lowlyocean@users.noreply.github.com> Date: Sun, 6 Jan 2019 11:04:56 -0500 Subject: [PATCH] Resolves jeysonmc/ir_webstats#4 --- ir_webstats/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ir_webstats/client.py b/ir_webstats/client.py index d26b6cb..40165e8 100644 --- a/ir_webstats/client.py +++ b/ir_webstats/client.py @@ -488,7 +488,7 @@ def event_results(self, subsession, sessnum=0): r = self.__req(ct.URL_GET_EVENTRESULTS % (subsession, sessnum))\ .encode('utf8') - data = [x for x in csv.reader(StringIO(r), delimiter=',', + data = [x for x in csv.reader(StringIO(r.decode('utf8')), delimiter=',', quotechar='"')] header_ev, header_res = data[0], data[3] event_info = dict(list(zip(header_ev, data[1])))