diff options
author | Louis Vézina <[email protected]> | 2019-12-02 23:54:31 -0500 |
---|---|---|
committer | Louis Vézina <[email protected]> | 2019-12-02 23:54:31 -0500 |
commit | 2ecd21beb0bf4fc6c3a5edee58e873ca4102b843 (patch) | |
tree | d694350fad746719a2e6babd4fd2f04c9c42fcef /libs/pyga | |
parent | 600ef3abc2e03f1c45cde8d00d7f18d020b98a8b (diff) | |
download | bazarr-2ecd21beb0bf4fc6c3a5edee58e873ca4102b843.tar.gz bazarr-2ecd21beb0bf4fc6c3a5edee58e873ca4102b843.zip |
Fix for analytics under Python 3.x.
Diffstat (limited to 'libs/pyga')
-rw-r--r-- | libs/pyga/requests.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/pyga/requests.py b/libs/pyga/requests.py index 72e4bc953..2497c857d 100644 --- a/libs/pyga/requests.py +++ b/libs/pyga/requests.py @@ -5,6 +5,7 @@ import calendar from math import floor from pyga.entities import Campaign, CustomVariable, Event, Item, Page, Session, SocialInteraction, Transaction, Visitor import pyga.utils as utils +from six import itervalues try: from urllib import urlencode from urllib2 import Request as urllib_request @@ -210,7 +211,7 @@ class Request(GIFRequest): x10.clear_key(self.X10_CUSTOMVAR_VALUE_PROJCT_ID) x10.clear_key(self.X10_CUSTOMVAR_SCOPE_PROJECT_ID) - for cvar in custom_vars.itervalues(): + for cvar in itervalues(custom_vars): name = utils.encode_uri_components(cvar.name) value = utils.encode_uri_components(cvar.value) x10.set_key( |