From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 446F4158091 for ; Wed, 1 Jun 2022 13:57:04 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5C58BE084A; Wed, 1 Jun 2022 13:57:03 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id D7F9FE084A for ; Wed, 1 Jun 2022 13:57:02 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (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) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id E0DA6341459 for ; Wed, 1 Jun 2022 13:57:00 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id E33817F for ; Wed, 1 Jun 2022 13:56:57 +0000 (UTC) From: "Matt Turner" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Matt Turner" Message-ID: <1654091769.4d31a290407d773d60c21b5ae1ac7687756fde08.mattst88@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pygobject/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/pygobject/files/pygobject-3.42.0-dynamicimporter-py310.patch X-VCS-Directories: dev-python/pygobject/files/ X-VCS-Committer: mattst88 X-VCS-Committer-Name: Matt Turner X-VCS-Revision: 4d31a290407d773d60c21b5ae1ac7687756fde08 X-VCS-Branch: master Date: Wed, 1 Jun 2022 13:56:57 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: c6f66b87-c5c2-4ed1-bd2a-9973cf739107 X-Archives-Hash: c2cbe41e44ba975ec1a87c23a02608a6 commit: 4d31a290407d773d60c21b5ae1ac7687756fde08 Author: Michael Mair-Keimberger levelnine at> AuthorDate: Wed Jun 1 06:55:41 2022 +0000 Commit: Matt Turner gentoo org> CommitDate: Wed Jun 1 13:56:09 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4d31a290 dev-python/pygobject: remove unused patch(es) Closes: https://github.com/gentoo/gentoo/pull/25716 Signed-off-by: Michael Mair-Keimberger levelnine.at> Signed-off-by: Matt Turner gentoo.org> .../pygobject-3.42.0-dynamicimporter-py310.patch | 61 ---------------------- 1 file changed, 61 deletions(-) diff --git a/dev-python/pygobject/files/pygobject-3.42.0-dynamicimporter-py310.patch b/dev-python/pygobject/files/pygobject-3.42.0-dynamicimporter-py310.patch deleted file mode 100644 index cf292ffbf7c6..000000000000 --- a/dev-python/pygobject/files/pygobject-3.42.0-dynamicimporter-py310.patch +++ /dev/null @@ -1,61 +0,0 @@ -From dea457c0754550e210ab3cca9da8be1ae52d1d31 Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= -Date: Tue, 18 May 2021 12:31:51 +0200 -Subject: [PATCH] Implement DynamicImporter.find_spec() - -On Python 3.10, the code raised an ImportWarning: - - ImportWarning: DynamicImporter.find_spec() not found; falling back to find_module() - -See https://docs.python.org/3.10/whatsnew/3.10.html#deprecated - -> Starting in this release, there will be a concerted effort to begin cleaning -> up old import semantics that were kept for Python 2.7 compatibility. -> Specifically, find_loader()/find_module() (superseded by find_spec()), -> load_module() (superseded by exec_module()), module_repr() -> (which the import system takes care of for you), -> the __package__ attribute (superseded by __spec__.parent), -> the __loader__ attribute (superseded by __spec__.loader), -> and the __cached__ attribute (superseded by __spec__.cached) -> will slowly be removed (as well as other classes and methods in importlib). -> ImportWarning and/or DeprecationWarning will be raised as appropriate to help -> identify code which needs updating during this transition. - -Fixes https://gitlab.gnome.org/GNOME/pygobject/-/issues/473 ---- - gi/importer.py | 15 ++++++++++----- - 1 file changed, 10 insertions(+), 5 deletions(-) - -diff --git a/gi/importer.py b/gi/importer.py -index 32967974..63788776 100644 ---- a/gi/importer.py -+++ b/gi/importer.py -@@ -107,15 +107,20 @@ class DynamicImporter(object): - def __init__(self, path): - self.path = path - -- def find_module(self, fullname, path=None): -+ def _find_module_check(self, fullname): - if not fullname.startswith(self.path): -- return -+ return False - - path, namespace = fullname.rsplit('.', 1) -- if path != self.path: -- return -+ return path == self.path -+ -+ def find_spec(self, fullname, path=None, target=None): -+ if self._find_module_check(fullname): -+ return importlib.util.spec_from_loader(fullname, self) - -- return self -+ def find_module(self, fullname, path=None): -+ if self._find_module_check(fullname): -+ return self - - def load_module(self, fullname): - if fullname in sys.modules: --- -2.32.0 -