sebschrader / python-arpreq

Query the Kernel ARP cache for the MAC address of an IP address
MIT License
11 stars 1 forks source link

Accept unicode strings on Python 2 #5

Closed sebschrader closed 7 years ago

sebschrader commented 7 years ago

Passing a unicode object to arpreq under Python 2 raises a TypeError.

>>> import arpreq
>>> arpreq(u'127.0.0.1')
TypeError: argument must be str, int, ipaddr.IPv4, ipaddress.IPv4Address or netaddr.IPAddress, not unicode
sebschrader commented 7 years ago

Fixed with a3e24a8d6916c953229a0c19ad27d146aea3ac73