gen/genlib/record: fix connect
This commit is contained in:
parent
e80cfedd7f
commit
f6e1c45d57
|
@ -136,10 +136,14 @@ class Record:
|
|||
_keep = set([f[0] for f in self.layout])
|
||||
elif isinstance(keep, list):
|
||||
_keep = set(keep)
|
||||
else:
|
||||
_keep = keep
|
||||
if omit is None:
|
||||
_omit = set()
|
||||
elif isinstance(omit, list):
|
||||
_omit = set(omit)
|
||||
else:
|
||||
_omit = omit
|
||||
|
||||
_keep = _keep - _omit
|
||||
|
||||
|
|
Loading…
Reference in New Issue