* ``parse_qs``, ``parse_qsl``, and ``escape`` are removed from :mod:`cgi`
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
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: