Skip to content

Commit

Permalink
Update IPX.py
Browse files Browse the repository at this point in the history
  • Loading branch information
IPIP.net committed Jan 9, 2015
1 parent bf1cb08 commit a42c617
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions IPX.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,8 @@
# coding: utf-8

import struct
from socket import gethostbyname
from socket import inet_aton
import os
import functools

_unpack_V = lambda b: struct.unpack("<L", b)
_unpack_N = lambda b: struct.unpack(">L", b)
Expand Down Expand Up @@ -50,4 +48,4 @@ def find(ip):
return "N/A"

res_offset = offset + index_offset - 262144
return dat[res_offset:res_offset + index_length].decode('utf-8')
return dat[res_offset:res_offset + index_length].decode('utf-8')

0 comments on commit a42c617

Please sign in to comment.