adapt to python2 returning lists and python3 iterators
authorDiane Trout <diane@ghic.org>
Fri, 20 Mar 2015 23:14:42 +0000 (16:14 -0700)
committerDiane Trout <diane@ghic.org>
Fri, 20 Mar 2015 23:14:42 +0000 (16:14 -0700)
commit3b4d8c3d7b62b2217cea1156c9c587623bb663f1
tree8c1a7c4f164ffb3cebea2c06e5711ab21525b6bb
parent09a39cf1274184994fcb6feafe0d5831cb254eff
adapt to python2 returning lists and python3 iterators

This leads to code like next(iter(obj.values())) instead of
obj.values()[0]. Honestly Im not sure which is less ugly.

Also there's a few places where I have to cast things with list()
to get my tests to pass.
htsworkflow/pipelines/srf.py
htsworkflow/pipelines/test/test_eland.py
htsworkflow/pipelines/test/test_retrieve_config.py
htsworkflow/submission/test/test_results.py