You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-04 09:22:40 +08:00
6 lines
178 B
Python
6 lines
178 B
Python
# In Python 3.3+ this uses grammar rule
|
|
# compare_chained2 ::= expr COMPARE_OP RETURN_VALUE
|
|
|
|
def _is_valid_netmask(self, netmask):
|
|
return 0 <= netmask <= self._max_prefixlen
|