Skip to content
This repository was archived by the owner on Apr 22, 2024. It is now read-only.

Commit ba551d7

Browse files
authored
Merge pull request #624 from hdiogenes/rename-isenum
Standardize `isenum` to `is_enum`
2 parents d802471 + a30ee84 commit ba551d7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pyof/foundation/base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ def value(self):
137137
object: The value of an enum, bitmask, etc.
138138
139139
"""
140-
if self.isenum():
140+
if self.is_enum():
141141
if isinstance(self._value, self.enum_ref):
142142
return self._value.value
143143
return self._value
@@ -240,7 +240,7 @@ def is_valid(self):
240240
except BadValueException:
241241
return False
242242

243-
def isenum(self):
243+
def is_enum(self):
244244
"""Test whether it is an :class:`~enum.Enum`.
245245
246246
Returns:

0 commit comments

Comments
 (0)