From owner-dev-commits-ports-main@freebsd.org Fri May 7 06:32:07 2021 Return-Path: Delivered-To: dev-commits-ports-main@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 003175F8E90; Fri, 7 May 2021 06:32:07 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Fc0wk6c0Mz3lPL; Fri, 7 May 2021 06:32:06 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id D5A7F2684A; Fri, 7 May 2021 06:32:06 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 1476W6iZ013336; Fri, 7 May 2021 06:32:06 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1476W6cN013335; Fri, 7 May 2021 06:32:06 GMT (envelope-from git) Date: Fri, 7 May 2021 06:32:06 GMT Message-Id: <202105070632.1476W6cN013335@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Emanuel Haupt Subject: git: 3a978f1c8a56 - main - ports-mgmt/distilator: Fix warnings emitted by python 3.8 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: ehaupt X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 3a978f1c8a56703f903ba1101cbeac47dcd84382 Auto-Submitted: auto-generated X-BeenThere: dev-commits-ports-main@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Commits to the main branch of the FreeBSD ports repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 May 2021 06:32:07 -0000 The branch main has been updated by ehaupt: URL: https://cgit.FreeBSD.org/ports/commit/?id=3a978f1c8a56703f903ba1101cbeac47dcd84382 commit 3a978f1c8a56703f903ba1101cbeac47dcd84382 Author: Emanuel Haupt AuthorDate: 2021-05-07 06:29:51 +0000 Commit: Emanuel Haupt CommitDate: 2021-05-07 06:29:51 +0000 ports-mgmt/distilator: Fix warnings emitted by python 3.8 PR: 255672 Reported by: yuri --- ports-mgmt/distilator/Makefile | 1 + ports-mgmt/distilator/files/patch-distilator.py | 38 +++++++++++++++++++++++++ 2 files changed, 39 insertions(+) diff --git a/ports-mgmt/distilator/Makefile b/ports-mgmt/distilator/Makefile index 9e7542c8c867..ce221aae46bc 100644 --- a/ports-mgmt/distilator/Makefile +++ b/ports-mgmt/distilator/Makefile @@ -2,6 +2,7 @@ PORTNAME= distilator PORTVERSION= 1.3 +PORTREVISION= 1 CATEGORIES= ports-mgmt MASTER_SITES= https://critical.ch/distilator/ \ LOCAL/ehaupt diff --git a/ports-mgmt/distilator/files/patch-distilator.py b/ports-mgmt/distilator/files/patch-distilator.py new file mode 100644 index 000000000000..1a7cfdecbe17 --- /dev/null +++ b/ports-mgmt/distilator/files/patch-distilator.py @@ -0,0 +1,38 @@ +--- distilator.py.orig 2020-07-18 07:41:39 UTC ++++ distilator.py +@@ -1,8 +1,6 @@ + #!/usr/bin/env python + """Command-line script to check the availability of a ports distfiles.""" + +-from __future__ import print_function # Imports print_function from python 3 +- + from multiprocessing import Pool + from functools import partial + +@@ -38,7 +36,7 @@ class Distfiles: + valid_urls = [] + for url in urls: + thisurl = urlparse(url) +- if thisurl.scheme is not "": ++ if thisurl.scheme != "": + valid_urls.append(thisurl.geturl()) + return valid_urls + +@@ -129,7 +127,7 @@ def resolve_or_timeout_error(url, urltype, args): + def validate_url_pool(args, iterable): + """Method to validate a list of URLs.""" + for url, urltype in iterable.items(): +- if urlparse(url).scheme is "http" or "https": ++ if urlparse(url).scheme == "http" or "https": + try: + user_agent = "distilator/%s (%s)" % (__version__, os.uname()[0]) + headers = {"User-Agent": user_agent} +@@ -160,7 +158,7 @@ def validate_url_pool(args, iterable): + status_code = resolve_or_timeout_error(url, urltype, args) + return {"status_code": status_code, "urltype": urltype, "url": url} + +- if urlparse(url).scheme is "ftp": ++ if urlparse(url).scheme == "ftp": + try: + requests_ftp.monkeypatch_session() + session = requests.Session()