Browse Source

Python3's filter() function does not return a list anymore.

tags/0.1.4
Johann Schmitz 4 years ago
parent
commit
7c66f420ae
Signed by: Johann Schmitz <johann@j-schmitz.net> GPG Key ID: A084064277C501ED
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      src/pypiwik/tracker.py

+ 2
- 1
src/pypiwik/tracker.py View File

@@ -270,7 +270,8 @@ class TrackingCodeBuilder(object):
self.tracker = tracker

def _paq_push(self, l):
return "_paq.push(%s);" % json.dumps(l)
# python3's filter() does not return a list
return "_paq.push(%s);" % json.dumps(list(l))

def _event_tracker(self):
if not (self.tracker.event_category and self.tracker.event_action):

Loading…
Cancel
Save