diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2013-07-05 13:10:10 -0400 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2013-07-05 13:10:10 -0400 |
commit | bfca4fa13f18c4b92486fb075c5f25779123d105 (patch) | |
tree | 5454327c1e3da1531759cb245e0f77de8e528a27 | |
parent | 937eface0298a04427d97491de4c16a9889d7fe0 (diff) | |
download | external_python_setuptools-bfca4fa13f18c4b92486fb075c5f25779123d105.tar.gz external_python_setuptools-bfca4fa13f18c4b92486fb075c5f25779123d105.tar.bz2 external_python_setuptools-bfca4fa13f18c4b92486fb075c5f25779123d105.zip |
Fixed AttributeError around izip_longest0.8
-rw-r--r-- | release.py | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -27,6 +27,11 @@ except NameError: pass try: + zip_longest = itertools.zip_longest +except AttributeError: + zip_longest = itertools.izip_longest + +try: import keyring except Exception: pass @@ -239,7 +244,7 @@ def _linkified_text(rst_content): anchors = [] linkified_parts = [_linkified_part(part, anchors) for part in plain_text_parts] - pairs = itertools.izip_longest( + pairs = zip_longest( linkified_parts, HREF_pattern.findall(rst_content), fillvalue='', |