Skip to content

Commit ff10480

Browse files
committed
Use StrEnum
1 parent afcf40e commit ff10480

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

scapy/layers/windows/registry.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,10 @@
1111

1212
import struct
1313

14-
from enum import Enum, IntEnum, IntFlag
14+
from enum import IntEnum, IntFlag
1515
from typing import Optional, Union, List
1616

17+
from scapy.compat import StrEnum
1718
from scapy.packet import Packet
1819
from scapy.error import log_runtime
1920

@@ -60,7 +61,7 @@
6061
)
6162

6263

63-
class RootKeys(str, Enum):
64+
class RootKeys(StrEnum):
6465
"""
6566
Standard root keys for the Windows registry
6667
"""

0 commit comments

Comments
 (0)