python3 migration

This commit is contained in:
j 2014-10-31 12:46:14 +01:00
commit b6faab1573
7 changed files with 12 additions and 12 deletions

View file

@ -392,7 +392,7 @@ if __name__ == '__main__':
from ox.cache import read_url
url = "http://www.loc.gov/marc/countries/countries_code.html"
data = read_url(url)
data = read_url(url).decode('utf-8')
countries = dict([
[ox.strip_tags(c) for c in r]
for r in re.compile('<tr>.*?class="code">(.*?)</td>.*?<td>(.*?)</td>', re.DOTALL).findall(data)