Skip to content

Commit 352d412

Browse files
committed
Consumer objects now accept unicode as well as strings in Python 2.7
1 parent e5f2f71 commit 352d412

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

snowplow_tracker/consumer.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def input(self, payload):
109109
If the maximum size has been reached, flushes the buffer.
110110
111111
:param payload: The name-value pairs for the event
112-
:type payload: dict(str:*)
112+
:type payload: dict(string:*)
113113
"""
114114
self.buffer.append(payload)
115115
if len(self.buffer) >= self.buffer_size:
@@ -169,7 +169,7 @@ def http_post(self, data):
169169
def http_get(self, payload):
170170
"""
171171
:param payload: The event properties
172-
:type payload: dict(str:*)
172+
:type payload: dict(string:*)
173173
"""
174174
logger.debug("Sending GET request...")
175175
r = requests.get(self.endpoint, params=payload)
@@ -224,7 +224,7 @@ def __init__(self, rdb=None, key="snowplow"):
224224
def input(self, payload):
225225
"""
226226
:param payload: The event properties
227-
:type payload: dict(str:*)
227+
:type payload: dict(string:*)
228228
"""
229229
logger.debug("Pushing event to Redis queue...")
230230
self.rdb.rpush(self.key, json.dumps(payload))

0 commit comments

Comments
 (0)