summaryrefslogtreecommitdiff
path: root/Lib/tarfile.py
diff options
context:
space:
mode:
authorINADA Naoki <methane@users.noreply.github.com>2018-06-28 17:10:36 +0900
committerGitHub <noreply@github.com>2018-06-28 17:10:36 +0900
commit461a1c4b497e5e118ebb6b77eb59348cc4ec83f9 (patch)
tree3717dddadea4412c7028a5737f9ac52295592770 /Lib/tarfile.py
parent62b6cea6b843076cfd6631eccd9347e8c3dd9458 (diff)
downloadcpython-git-461a1c4b497e5e118ebb6b77eb59348cc4ec83f9.tar.gz
bpo-33842: Remove tarfile.filemode (GH-7661)
Diffstat (limited to 'Lib/tarfile.py')
-rwxr-xr-xLib/tarfile.py7
1 files changed, 0 insertions, 7 deletions
diff --git a/Lib/tarfile.py b/Lib/tarfile.py
index 85119a48a4..7b4732d471 100755
--- a/Lib/tarfile.py
+++ b/Lib/tarfile.py
@@ -256,13 +256,6 @@ def copyfileobj(src, dst, length=None, exception=OSError, bufsize=None):
dst.write(buf)
return
-def filemode(mode):
- """Deprecated in this location; use stat.filemode."""
- import warnings
- warnings.warn("deprecated in favor of stat.filemode",
- DeprecationWarning, 2)
- return stat.filemode(mode)
-
def _safe_print(s):
encoding = getattr(sys.stdout, 'encoding', None)
if encoding is not None: