migrate to py3
This commit is contained in:
parent
253ff93085
commit
1df2a392ef
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue