ls(): do not display "Emph" for Emph fields

This commit is contained in:
Pierre LALET 2017-01-25 19:12:28 +01:00
parent 3dfad350e3
commit 5531c34679
1 changed files with 2 additions and 1 deletions

View File

@ -1283,7 +1283,8 @@ def ls(obj=None, case_sensitive=False, verbose=False):
attrs = []
long_attrs = []
while isinstance(cur_fld, (Emph, ConditionalField)):
attrs.append(cur_fld.__class__.__name__[:4])
if isinstance(cur_fld, ConditionalField):
attrs.append(cur_fld.__class__.__name__[:4])
cur_fld = cur_fld.fld
if verbose and isinstance(cur_fld, EnumField) \
and hasattr(cur_fld, "i2s"):