aboutsummaryrefslogtreecommitdiffstats
path: root/release.py
diff options
context:
space:
mode:
Diffstat (limited to 'release.py')
-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='',