replace iterkeys with python 3 equivalents
[htsworkflow.git] / htsworkflow / pipelines / genomemap.py
index 6dfcf68fc235775a8280dd1bc0719e4fd513c7e4..d49103fc6c6dec94014a783ba6767ac3540fe03c 100644 (file)
@@ -17,7 +17,7 @@ class GenomeMap(collections.MutableMapping):
         return len(self._contigs)
 
     def __iter__(self):
-        return self._contigs.iterkeys()
+        return iter(self._contigs.keys())
 
     def __getitem__(self, name):
         return self._contigs[name]