Skip to content

Commit

Permalink
Merge pull request #71 from Phoul/master
Browse files Browse the repository at this point in the history
Fixing invalid COUNTRY_CODE_URL
  • Loading branch information
ioerror committed Mar 1, 2014
2 parents 8885bc0 + 9daba0c commit 927adeb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions blockfinder
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ class DownloaderParser:
ftp://ftp.ripe.net/ripe/dbase/split/ripe.db.inet6num.gz
"""

COUNTRY_CODE_URL = "http://www.iso.org/iso/list-en1-semic-3.txt"
COUNTRY_CODE_URL = "http://www.iso.org/iso/home/standards/country_codes/country_names_and_code_elements_txt-temp.htm"

def download_maxmind_files(self):
""" Download all LIR delegation urls. """
Expand Down Expand Up @@ -553,7 +553,7 @@ class Lookup:
""" Return a dictionary mapping country name to the country
code. """
country_code_path = os.path.join(self.cache_dir,
'list-en1-semic-3.txt')
'country_names_and_code_elements_txt-temp.htm')
if not os.path.exists(country_code_path):
return
self.map_co = {}
Expand Down

0 comments on commit 927adeb

Please sign in to comment.