Browse Source

Fix for work with python2.6

develop
Mike Hiretsky 11 years ago
parent
commit
6f4a5ae4ef
  1. 2
      pym/utils/ip.py

2
pym/utils/ip.py

@ -48,7 +48,7 @@ IP_ADDR_NET = "(%(ipaddr)s)/((%(ipnet)s))"%{'ipaddr':IP_NET,
reIp = re.compile("^{0}$".format(IP_ADDR))
reNetSuffix = re.compile("^{0}$".format(IP_NET_SUFFIX))
reNet = re.compile("^{0}$".format(IP_ADDR_NET))
reMask = re.compile("^{}$".format(IP_MASK))
reMask = re.compile("^{0}$".format(IP_MASK))
def checkIp(ip):
"""Check ip"""

Loading…
Cancel
Save