aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOleksandr Natalenko <oleksandr@natalenko.name>2018-11-17 15:43:09 +0100
committerSergei Trofimovich <slyfox@gentoo.org>2018-11-19 22:19:54 +0000
commit2acc5c3278354f56c70f9f48e66eb0203d5e8370 (patch)
treea679c1d7745591300d779470eff1b44f8d462616
parentpaxelf: constify elfobj pointers (diff)
downloadpax-utils-2acc5c3278354f56c70f9f48e66eb0203d5e8370.tar.gz
pax-utils-2acc5c3278354f56c70f9f48e66eb0203d5e8370.tar.bz2
pax-utils-2acc5c3278354f56c70f9f48e66eb0203d5e8370.zip
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@natalenko.name> Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
-rwxr-xr-xlddtree.py2
1 files changed, 1 insertions, 1 deletions
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