Skip to content

Commit

Permalink
Import net.ipLongToString in pygeoip
Browse files Browse the repository at this point in the history
  • Loading branch information
greghaynes committed Mar 21, 2010
1 parent 9faddb8 commit 658ee23
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/pyscripts/pygeoip/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -564,6 +564,8 @@ def region_by_name(self, hostname):
addr = socket.gethostbyname(hostname)
return self.region_by_addr(addr)

from xsbs.net import ipLongToString

db = GeoIP('pygeoip/GeoIP.dat')

def getCountry(ip):
Expand Down

0 comments on commit 658ee23

Please sign in to comment.