commit: 2acc5c3278354f56c70f9f48e66eb0203d5e8370 Author: Oleksandr Natalenko <oleksandr <AT> natalenko <DOT> name> AuthorDate: Sat Nov 17 14:43:09 2018 +0000 Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> 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 <oleksandr <AT> natalenko.name> Signed-off-by: Sergei Trofimovich <slyfox <AT> 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