Remove a no-longer-needed check if enum is available

Not needed since 4d49ba6529.
This commit is contained in:
Ran Benita 2019-07-14 18:26:05 +03:00
parent 65aee1e0c8
commit 7d1c697c30
1 changed files with 1 additions and 1 deletions

View File

@ -1164,7 +1164,7 @@ def _idval(val, argname, idx, idfn, item, config):
return str(val)
elif isinstance(val, REGEX_TYPE):
return ascii_escaped(val.pattern)
elif enum is not None and isinstance(val, enum.Enum):
elif isinstance(val, enum.Enum):
return str(val)
elif (inspect.isclass(val) or inspect.isfunction(val)) and hasattr(val, "__name__"):
return val.__name__