Skip to content

Commit 681d01f

Browse files
committed
Switch Priority to use an IntEnum base to allow comparisons
1 parent ff1dc47 commit 681d01f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

cloudbot/hook.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
import inspect
22
import re
33
import collections
4-
from enum import Enum, unique
4+
from enum import Enum, unique, IntEnum
55

66
from cloudbot.event import EventType
77

88
valid_command_re = re.compile(r"^\w+$")
99

1010

1111
@unique
12-
class Priority(Enum):
12+
class Priority(IntEnum):
1313
LOWEST = -128
1414
LOW = -64
1515
NORMAL = 0

0 commit comments

Comments
 (0)