migrate to py3

This commit is contained in:
Benjamin Dauvergne 2021-02-04 10:37:13 +01:00
parent 253ff93085
commit 1df2a392ef
2 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
@ -171,7 +171,7 @@ def apply_attachments(repo, issue):
indexes = indexes.strip()
if not indexes:
break
indexes = map(int, indexes.split())
indexes = list(map(int, indexes.split()))
if not all(i < len(attachments) for i in indexes):
raise ValueError('invalid values', indexes)
except Exception as e:

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
from setuptools import setup