You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
420 B
18 lines
420 B
6 years ago
|
"""
|
||
|
get/put functions that consume/produce Python lists using Pickle to serialize
|
||
|
"""
|
||
|
from __future__ import absolute_import
|
||
|
from .compatibility import pickle
|
||
|
|
||
|
|
||
|
from .encode import Encode
|
||
|
from functools import partial
|
||
|
|
||
|
def concat(lists):
|
||
|
return sum(lists, [])
|
||
|
|
||
|
Pickle = partial(Encode,
|
||
|
partial(pickle.dumps, protocol=pickle.HIGHEST_PROTOCOL),
|
||
|
pickle.loads,
|
||
|
concat)
|