Skip to content

Commit

Permalink
fixed deprecated warning in importer
Browse files Browse the repository at this point in the history
  • Loading branch information
daddyz committed Dec 17, 2023
1 parent 5249a49 commit 46dae2d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Binary file modified data/extended_data.dat
Binary file not shown.
2 changes: 1 addition & 1 deletion lib/phonelib/data_importer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ def import_country_names

require 'open-uri'
require 'csv'
io = open('https://download.geonames.org/export/dump/countryInfo.txt')
io = URI.open('http://download.geonames.org/export/dump/countryInfo.txt')
csv = CSV.new(io, {col_sep: "\t"})
csv.each do |row|
next if row[0].nil? || row[0].start_with?('#') || row[0].empty? || row[0].size != 2
Expand Down

0 comments on commit 46dae2d

Please sign in to comment.