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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 9363E138334 for ; Mon, 19 Nov 2018 22:20:26 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8EA43E08FC; Mon, 19 Nov 2018 22:20:25 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 6637DE08FC for ; Mon, 19 Nov 2018 22:20:25 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id C7386335C9F for ; Mon, 19 Nov 2018 22:20:22 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 0FEA343A for ; Mon, 19 Nov 2018 22:20:21 +0000 (UTC) From: "Sergei Trofimovich" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sergei Trofimovich" Message-ID: <1542665994.2acc5c3278354f56c70f9f48e66eb0203d5e8370.slyfox@gentoo> Subject: [gentoo-commits] proj/pax-utils:master commit in: / X-VCS-Repository: proj/pax-utils X-VCS-Files: lddtree.py X-VCS-Directories: / X-VCS-Committer: slyfox X-VCS-Committer-Name: Sergei Trofimovich X-VCS-Revision: 2acc5c3278354f56c70f9f48e66eb0203d5e8370 X-VCS-Branch: master Date: Mon, 19 Nov 2018 22:20:21 +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-Archives-Salt: fc149633-933c-435f-8420-eb92b7be499f X-Archives-Hash: 27e38e65c0ab7e7a1f2873023ea9cef9 commit: 2acc5c3278354f56c70f9f48e66eb0203d5e8370 Author: Oleksandr Natalenko natalenko name> AuthorDate: Sat Nov 17 14:43:09 2018 +0000 Commit: Sergei Trofimovich gentoo org> CommitDate: Mon Nov 19 22:19:54 2018 +0000 URL: https://gitweb.gentoo.org/proj/pax-utils.git/commit/?id=2acc5c32 lddtree.py: use errno properly os.errno interface is removed [1], thus should not be used. In fact, it is not used in other places of lddtree.py, so fix this one too, because it breaks --copy-to-tree on systems with Python 3.7. [1] https://bugs.python.org/issue33666 Bug: https://bugs.gentoo.org/671522 Signed-off-by: Oleksandr Natalenko natalenko.name> Signed-off-by: Sergei Trofimovich gentoo.org> lddtree.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lddtree.py b/lddtree.py index 2bfaaae..66f5e01 100755 --- a/lddtree.py +++ b/lddtree.py @@ -122,7 +122,7 @@ def makedirs(path): try: os.makedirs(path) except OSError as e: - if e.errno != os.errno.EEXIST: + if e.errno != errno.EEXIST: raise