doc/tutorials/dataimport/diseasome_import.py
changeset 10662 10942ed172de
parent 8927 885dea8f16a0
child 11329 a8cab8fb54ba
--- a/doc/tutorials/dataimport/diseasome_import.py	Tue Sep 08 18:04:57 2015 +0200
+++ b/doc/tutorials/dataimport/diseasome_import.py	Tue Sep 15 16:15:03 2015 +0200
@@ -95,7 +95,7 @@
     # Perform a first commit, of the entities
     store.flush()
     kwargs = {}
-    for uri, relations in all_relations.iteritems():
+    for uri, relations in all_relations.items():
         from_eid = uri_to_eid.get(uri)
         # ``subjtype`` should be initialized if ``SQLGenObjectStore`` is used
         # and there are inlined relations in the schema.
@@ -108,7 +108,7 @@
         kwargs['subjtype'] = uri_to_etype.get(uri)
         if not from_eid:
             continue
-        for rtype, rels in relations.iteritems():
+        for rtype, rels in relations.items():
             if rtype in ('classes', 'possible_drugs', 'omim', 'omim_page',
                          'chromosomal_location', 'same_as', 'gene_id',
                          'hgnc_id', 'hgnc_page'):