Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Hiro
GetTor
Commits
bd107baa
Commit
bd107baa
authored
Feb 16, 2016
by
ilv
Browse files
Latest version of github3 replaces iter_releases() by releases()
parent
c6c019fb
Changes
1
Hide whitespace changes
Inline
Side-by-side
upload/bundles2github.py
View file @
bd107baa
...
...
@@ -108,7 +108,7 @@ if __name__ == '__main__':
readable_fp
=
' '
.
join
(
fp
[
i
:
i
+
4
]
for
i
in
xrange
(
0
,
len
(
fp
),
4
))
# Find any published releases with this version number
for
release
in
target_repo
.
iter_
releases
():
for
release
in
target_repo
.
releases
():
if
release
.
tag_name
==
'v{}'
.
format
(
version
)
and
not
release
.
draft
:
print
(
"Found an existing published release with this version. "
"Not uploading again unless you delete the published "
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment