adapt to python2 returning lists and python3 iterators
[htsworkflow.git] / htsworkflow / pipelines / srf.py
index 2663ee39bd6453a02b4c9043d096e41e152171a7..b029339c6aefb3f65839f8faca8da84f0a46a39d 100644 (file)
@@ -112,7 +112,7 @@ def create_qseq_patterns(bustard_dir):
       qseq_patterns = []
       # grab a lane from the dictionary
       # I don't think it matters which one.
-      k = lanes.keys()[0]
+      k = next(iter(lanes.keys()))
       # build the list of patterns
       for read in lanes[k]:
         read = int(read)