Skip to content

Commit e5bda6a

Browse files
AleksMatCapirca Team
authored andcommitted
Fix capirca iputils to work with Python 3.14
PiperOrigin-RevId: 881069967
1 parent d55e1d8 commit e5bda6a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

capirca/utils/iputils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def exclude_address(
3535
if not isinstance(exclude_net, ipaddress._BaseNetwork): # pylint disable=protected-access
3636
raise TypeError('%s is not a network object' % exclude_net)
3737

38-
if not base_net._version == exclude_net._version: # pylint disable=protected-access # pytype: disable=attribute-error
38+
if not base_net.version == exclude_net.version:
3939
raise TypeError(
4040
'%s and %s are not of the same version' % (base_net, exclude_net)
4141
)

0 commit comments

Comments
 (0)