mirror of
https://github.com/wassname/catalyst.git
synced 2026-07-07 05:49:52 +08:00
MAINT: Removes alternate function from gens.utils
This function is no longer refrenced elsewhere in the codebase.
This commit is contained in:
@@ -19,22 +19,12 @@ import numbers
|
||||
|
||||
from hashlib import md5
|
||||
from datetime import datetime
|
||||
from itertools import izip_longest
|
||||
from zipline.protocol import (
|
||||
DATASOURCE_TYPE,
|
||||
Event
|
||||
)
|
||||
|
||||
|
||||
def alternate(g1, g2):
|
||||
"""Specialized version of roundrobin for just 2 generators."""
|
||||
for e1, e2 in izip_longest(g1, g2):
|
||||
if e1 is not None:
|
||||
yield e1
|
||||
if e2 is not None:
|
||||
yield e2
|
||||
|
||||
|
||||
def hash_args(*args, **kwargs):
|
||||
"""Define a unique string for any set of representable args."""
|
||||
arg_string = '_'.join([str(arg) for arg in args])
|
||||
|
||||
Reference in New Issue
Block a user