summaryrefslogtreecommitdiffstats
path: root/Lib/tarfile.py
diff options
context:
space:
mode:
authorJesus Cea <jcea@jcea.es>2012-10-05 01:15:39 (GMT)
committerJesus Cea <jcea@jcea.es>2012-10-05 01:15:39 (GMT)
commit4791a242688167ffc4abb3b9f42d6cd9e877652e (patch)
tree62a566c811ae808f9dd7a7aa10e655d4d3aad56b /Lib/tarfile.py
parentf1af7057208da7b3d15703645688fea971a4fb5e (diff)
downloadcpython-4791a242688167ffc4abb3b9f42d6cd9e877652e.zip
cpython-4791a242688167ffc4abb3b9f42d6cd9e877652e.tar.gz
cpython-4791a242688167ffc4abb3b9f42d6cd9e877652e.tar.bz2
#16135: Removal of OS/2 support (Python code partial cleanup)
Diffstat (limited to 'Lib/tarfile.py')
-rw-r--r--Lib/tarfile.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/tarfile.py b/Lib/tarfile.py
index 7b9f407..a88224d 100644
--- a/Lib/tarfile.py
+++ b/Lib/tarfile.py
@@ -2213,8 +2213,7 @@ class TarFile(object):
if tarinfo.issym() and hasattr(os, "lchown"):
os.lchown(targetpath, u, g)
else:
- if sys.platform != "os2emx":
- os.chown(targetpath, u, g)
+ os.chown(targetpath, u, g)
except EnvironmentError as e:
raise ExtractError("could not change owner")