|
@ -4,11 +4,7 @@ import weakref |
|
|
import struct |
|
|
import struct |
|
|
import socket |
|
|
import socket |
|
|
import sys |
|
|
import sys |
|
|
|
|
|
from six.moves import xrange as _range |
|
|
if sys.version_info < (3,): |
|
|
|
|
|
_range = xrange |
|
|
|
|
|
else: |
|
|
|
|
|
_range = range |
|
|
|
|
|
|
|
|
|
|
|
def ip_from_int(ip): |
|
|
def ip_from_int(ip): |
|
|
"""Convert IP to :py:class:`int` |
|
|
"""Convert IP to :py:class:`int` |
|
|