updated interface.py to use python3 super()

This commit is contained in:
bharnden 2019-10-23 10:40:40 -07:00
parent b185c3c679
commit 440c8ed565
4 changed files with 7 additions and 7 deletions

View file

@ -401,7 +401,7 @@ class Ipv4Prefix(IpPrefix):
:param str prefixstr: ip prefix
"""
IpPrefix.__init__(self, AF_INET, prefixstr)
super().__init__(AF_INET, prefixstr)
class Ipv6Prefix(IpPrefix):
@ -415,7 +415,7 @@ class Ipv6Prefix(IpPrefix):
:param str prefixstr: ip prefix
"""
IpPrefix.__init__(self, AF_INET6, prefixstr)
super().__init__(AF_INET6, prefixstr)
def is_ip_address(af, addrstr):