Skip to content

Commit

Permalink
make izip python 2 & 3 compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
TomSmithCGAT committed May 23, 2016
1 parent c2b4556 commit feda398
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion umi_tools/extract.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,15 @@
'''
import sys
from itertools import izip

# python 3 doesn't require izip
try:
# Python 2
from itertools import izip
except ImportError:
# Python 3
izip = zip

import umi_tools.Utilities as U


Expand Down

0 comments on commit feda398

Please sign in to comment.