Skip to content

Commit

Permalink
Fix py 3.7 compat
Browse files Browse the repository at this point in the history
  • Loading branch information
Dramelac committed Mar 4, 2024
1 parent aad1edc commit f3a3cc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exegol/utils/NetworkUtils.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def parse_netmask(cls, netmask: Union[int, str], default: int) -> int:
else:
assert type(netmask) is str
if netmask.startswith("/"):
netmask = netmask.removeprefix("/")
netmask = netmask[1:]
try:
result = int(netmask)
if 0 > result > 32:
Expand Down

0 comments on commit f3a3cc0

Please sign in to comment.