fix encoding error in sql lab logging (#3424)

This commit is contained in:
Grace Guo
2017-09-14 11:18:34 -07:00
committed by Maxime Beauchemin
parent 31b7b9a6a0
commit ad604aed09
3 changed files with 11 additions and 2 deletions

View File

@@ -1,3 +1,5 @@
from __future__ import unicode_literals
from time import sleep
from datetime import datetime
import json
@@ -34,8 +36,8 @@ def dedup(l, suffix='__'):
Always returns the same number of entries as provided, and always returns
unique values.
>>> dedup(['foo', 'bar', 'bar', 'bar'])
['foo', 'bar', 'bar__1', 'bar__2']
>>> print(','.join(dedup(['foo', 'bar', 'bar', 'bar'])))
foo,bar,bar__1,bar__2
"""
new_l = []
seen = {}