Skip to content

Commit d7bfa46

Browse files
committed
bpo-33842: Remove tarfile.filemode
1 parent 62b6cea commit d7bfa46

2 files changed

Lines changed: 1 addition & 7 deletions

File tree

Lib/tarfile.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -256,13 +256,6 @@ def copyfileobj(src, dst, length=None, exception=OSError, bufsize=None):
256256
dst.write(buf)
257257
return
258258

259-
def filemode(mode):
260-
"""Deprecated in this location; use stat.filemode."""
261-
import warnings
262-
warnings.warn("deprecated in favor of stat.filemode",
263-
DeprecationWarning, 2)
264-
return stat.filemode(mode)
265-
266259
def _safe_print(s):
267260
encoding = getattr(sys.stdout, 'encoding', None)
268261
if encoding is not None:
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Remove ``tarfile.filemode`` which is deprecated since Python 3.3.

0 commit comments

Comments
 (0)