diff options
author | Zach Smith <zach.smith@makespace.com> | 2015-11-19 22:46:26 -0500 |
---|---|---|
committer | Zach Smith <zach.smith@makespace.com> | 2015-11-19 22:46:26 -0500 |
commit | b3b79af14cd76728740bce442efb468ff83df6dc (patch) | |
tree | 2250f750cd6d9e6e3928c64b5661132e80c595a7 /pycco/compat.py | |
parent | 239816deb0db2a3136b5442bca7422faf67d953d (diff) | |
download | pycco-bugfix-indent.tar.gz |
Factor out highlight into more functional stylebugfix-indent
Diffstat (limited to 'pycco/compat.py')
-rw-r--r-- | pycco/compat.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/pycco/compat.py b/pycco/compat.py index 6660531..37cb345 100644 --- a/pycco/compat.py +++ b/pycco/compat.py @@ -2,3 +2,10 @@ try: pycco_unichr = unichr except NameError: pycco_unichr = chr + +import itertools +try: + pycco_zip_longest = itertools.zip_longest +except AttributeError: + import itertools + pycco_zip_longest = itertools.izip_longest |