diff options
-rw-r--r-- | ryu/lib/ip.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ryu/lib/ip.py b/ryu/lib/ip.py index c4094b9a..c75de162 100644 --- a/ryu/lib/ip.py +++ b/ryu/lib/ip.py @@ -84,7 +84,7 @@ def ipv4_to_str(ip): :param ip: binary or int type representation of IPv4 address :return: IPv4 address string """ - if isinstance(ip, int): + if isinstance(ip, numbers.Integral): return addrconv.ipv4.bin_to_text(struct.pack("!I", ip)) else: return addrconv.ipv4.bin_to_text(ip) |