Commit ee4cce4c authored by Samuel GAIST's avatar Samuel GAIST Committed by Flavio TARSETTI
Browse files

[statistics][views] Simplify zip_longest import/use

parent 05577332
Pipeline #42965 passed with stage
in 14 minutes and 18 seconds
......@@ -27,11 +27,7 @@
import datetime
try:
from itertools import izip_longest
except ImportError:
from itertools import zip_longest as izip_longest
from itertools import zip_longest
import simplejson
from django.contrib.auth.decorators import login_required
......@@ -167,7 +163,7 @@ def convert_values(stats):
def grouper(n, iterable, fillvalue=None):
"grouper(3, 'ABCDEFG', 'x') --> ABC DEF Gxx"
args = [iter(iterable)] * n
return izip_longest(fillvalue=fillvalue, *args)
return zip_longest(fillvalue=fillvalue, *args)
def get_statistics(hours_to_go_back, cluster_by):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment