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

uses cmp keyword of sorted() which has been removed in Python3 #31

Open
umlaeute opened this issue Sep 15, 2021 · 0 comments
Open

uses cmp keyword of sorted() which has been removed in Python3 #31

umlaeute opened this issue Sep 15, 2021 · 0 comments

Comments

@umlaeute
Copy link
Contributor

umlaeute commented Sep 15, 2021

as of Python3 (released 2008), the sorted() function no longer has a cmp keyword (see here)

however, in current master it is still used:

packages = sorted(packages, key=lambda x: self.parse_package_ref(x)[2], reverse=True, cmp=apt_pkg.version_compare)

consequently, the publishing process fail on Python3 systems (and with Python2 being dead dead dead, this means that publishing is broken in general)

@umlaeute umlaeute changed the title uses cmp keyword of sorted which has been removed in Python3 uses cmp keyword of sorted() which has been removed in Python3 Sep 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant