commit | f0bac29cd554cae427eda9b4b53994b9fef6187c | [log] [tgz] |
---|---|---|
author | Rich Lane <rlane@bigswitch.com> | Sun Dec 01 15:55:21 2013 -0800 |
committer | Rich Lane <rlane@bigswitch.com> | Sun Dec 01 15:55:21 2013 -0800 |
tree | c0a3d6bf383fc2e3dd0187960778a457177de865 | |
parent | 5bcc7c7ffb680f8b176c9ae87a0c0ed070b2646a [diff] [blame] |
pyloxi: move pack_list to generic_util For consistency with unpack_list.
diff --git a/py_gen/templates/generic_util.py b/py_gen/templates/generic_util.py index 99840ec..039d82a 100644 --- a/py_gen/templates/generic_util.py +++ b/py_gen/templates/generic_util.py
@@ -35,6 +35,9 @@ import loxi import struct +def pack_list(values): + return "".join([x.pack() for x in values]) + def unpack_list(reader, deserializer): """ The deserializer function should take an OFReader and return the new object.