Skip to content

Commit 965a85f

Browse files
committed
Update dcat download method invocation in ckantests
1 parent 3bf37c1 commit 965a85f

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

ckantests.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,6 @@ def package_to_dcat(package):
4040
return converters.ckan_to_dcat(package)
4141

4242

43-
def dcat_to_utf8_dict(url):
44-
return json.loads(urllib2.urlopen(url).read().decode('utf-8'))
45-
46-
4743
# pkg = ckanops.get_package('ciclones')
4844
# print pkg
4945
# print package_to_dcat(pkg)
@@ -53,7 +49,7 @@ def dcat_to_utf8_dict(url):
5349
# print 'Groups'
5450
# print list_groups()
5551

56-
catalog = dcat_to_utf8_dict("http://adela.datos.gob.mx/sedesol/catalogo.json")
52+
catalog = ckanops.dcat_to_utf8_dict("http://adela.datos.gob.mx/sedesol/catalogo.json")
5753
print catalog.get('title')
5854

5955
for dataset in catalog.get('dataset', []):

0 commit comments

Comments
 (0)