Commit 461a1c4b authored by INADA Naoki's avatar INADA Naoki Committed by GitHub

bpo-33842: Remove tarfile.filemode (GH-7661)

parent 62b6cea6
...@@ -151,6 +151,8 @@ Removed ...@@ -151,6 +151,8 @@ Removed
* ``parse_qs``, ``parse_qsl``, and ``escape`` are removed from :mod:`cgi` * ``parse_qs``, ``parse_qsl``, and ``escape`` are removed from :mod:`cgi`
module. They are deprecated from Python 3.2 or older. module. They are deprecated from Python 3.2 or older.
* ``filemode`` function is removed from :mod:`tarfile` module.
It is not documented and deprecated since Python 3.3.
Porting to Python 3.8 Porting to Python 3.8
......
...@@ -256,13 +256,6 @@ def copyfileobj(src, dst, length=None, exception=OSError, bufsize=None): ...@@ -256,13 +256,6 @@ def copyfileobj(src, dst, length=None, exception=OSError, bufsize=None):
dst.write(buf) dst.write(buf)
return 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): def _safe_print(s):
encoding = getattr(sys.stdout, 'encoding', None) encoding = getattr(sys.stdout, 'encoding', None)
if encoding is not None: if encoding is not None:
......
Remove ``tarfile.filemode`` which is deprecated since Python 3.3.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment