GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — uses `cmp` keyword of `sorted()` which has been removed in Python3 · Issue #31 · tcpcloud/python-aptly

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

New issue
Copy link
New issue
Copy link
Open
Open
uses cmp keyword of sorted() which has been removed in Python3#31
Copy link

Description

@umlaeute
umlaeute
opened on Sep 15, 2021
Issue body actions

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

however, in current master it is still used:

python-aptly/aptly/publisher/__init__.py

Line 421 in 0cf9f76

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)

Activity

  1. 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[/+] on Sep 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402520 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.