Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update for Python 3 #736

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions bloom/generators/rpm/generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
import textwrap

from dateutil import tz
from distutils.version import LooseVersion
from packaging.version import Version
from time import strptime

from bloom.generators import BloomGenerator
Expand Down Expand Up @@ -300,7 +300,7 @@ def generate_substitutions_from_package(
# Changelog
if releaser_history:
sorted_releaser_history = sorted(releaser_history,
key=lambda k: LooseVersion(k), reverse=True)
key=lambda k: Version(k), reverse=True)
sorted_releaser_history = sorted(sorted_releaser_history,
key=lambda k: strptime(releaser_history.get(k)[0], '%a %b %d %Y'),
reverse=True)
Expand Down
2 changes: 1 addition & 1 deletion scripts/bloom-export-upstream
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

"""
This is a place holder script for use in testing.
Expand Down
2 changes: 1 addition & 1 deletion scripts/bloom-generate
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

"""
This is a place holder script for use in testing.
Expand Down
2 changes: 1 addition & 1 deletion scripts/bloom-release
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

"""
This is a place holder script for use in testing.
Expand Down
2 changes: 1 addition & 1 deletion scripts/bloom-update
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

"""
This is a place holder script for use in testing.
Expand Down
2 changes: 1 addition & 1 deletion scripts/git-bloom-branch
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

"""
This is a place holder script for use in testing.
Expand Down
2 changes: 1 addition & 1 deletion scripts/git-bloom-config
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

"""
This is a place holder script for use in testing.
Expand Down
2 changes: 1 addition & 1 deletion scripts/git-bloom-generate
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

"""
This is a place holder script for use in testing.
Expand Down
2 changes: 1 addition & 1 deletion scripts/git-bloom-import-upstream
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

"""
This is a place holder script for use in testing.
Expand Down
2 changes: 1 addition & 1 deletion scripts/git-bloom-patch
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

"""
This is a place holder script for use in testing.
Expand Down
2 changes: 1 addition & 1 deletion scripts/git-bloom-release
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

"""
This is a place holder script for use in testing.
Expand Down
Loading