Fix issue #109 and add regression test.
This commit is contained in:
1 parent
eb302094aa
commit
48e1003f42
5 files changed
+70
-12
No files matched your search
@@ -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):
|
||||
|
||||
Reference in new issue
Block a user