aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2013-07-05 13:10:10 -0400
committerJason R. Coombs <jaraco@jaraco.com>2013-07-05 13:10:10 -0400
commitbfca4fa13f18c4b92486fb075c5f25779123d105 (patch)
tree5454327c1e3da1531759cb245e0f77de8e528a27
parent937eface0298a04427d97491de4c16a9889d7fe0 (diff)
downloadexternal_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.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/release.py b/release.py
index 39d0b613..654db012 100644
--- a/release.py
+++ b/release.py
@@ -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='',