Fix issue #109 and add regression test.

This commit is contained in:
joo committed 2018-10-12 17:07:04 +01:00
1 parent eb302094aa
commit 48e1003f42
5 files changed
+70 -12

No files matched your search

+2
View File
@@ -119,6 +119,8 @@ class Packet(object):
@property
def fields(self):
""" An iterable of the names of the packet's fields, or None. """
if self.definition is None:
return None
return (field for defn in self.definition for field in defn)
def field_string(self, field):