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 | 0bbf2c19c7f2a17845fbf444afa21404650d1e4e (patch) | |
| tree | be306e8cfe1bd972f5aef0756400d46deda50739 /release.py | |
| parent | eb91fd2bc145cb7a914a4e7c38cd0c8c3cdb88c6 (diff) | |
| download | python-setuptools-bitbucket-0bbf2c19c7f2a17845fbf444afa21404650d1e4e.tar.gz | |
Fixed AttributeError around izip_longest0.8
Diffstat (limited to 'release.py')
| -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='', |
