| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -141,6 +141,13 @@ mimetypes | |||
| 141 | 141 | :meth:`mimetypes.MimeTypes.add_type`. | |
| 142 | 142 | Undotted extensions now raise a :exc:`ValueError`. | |
| 143 | 143 | ||
| 144 | + shutil | ||
| 145 | + ------ | ||
| 146 | + | ||
| 147 | + * The :exc:`!ExecError` exception which has been deprecated since Python 3.14. | ||
| 148 | + It has not been used by any function in :mod:`!shutil` since Python 3.4. | ||
| 149 | + (Contributed by Stan Ulbrych in :gh:`149567`.) | ||
| 150 | + | ||
| 144 | 151 | symtable | |
| 145 | 152 | -------- | |
| 146 | 153 | ||
@@ -161,6 +168,7 @@ sysconfig | |||
| 161 | 168 | * The :func:`!sysconfig.expand_makefile_vars` function | |
| 162 | 169 | which has been deprecated since Python 3.14. | |
| 163 | 170 | Use the ``vars`` argument of :func:`sysconfig.get_paths` instead. | |
| 171 | + (Contributed by Stan Ulbrych in :gh:`149499`.) | ||
| 164 | 172 | ||
| 165 | 173 | tarfile | |
| 166 | 174 | ------- | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1638,15 +1638,3 @@ def which(cmd, mode=os.F_OK | os.X_OK, path=None): | |||
| 1638 | 1638 | if _access_check(name, mode): | |
| 1639 | 1639 | return name | |
| 1640 | 1640 | return None | |
| 1641 | - | ||
| 1642 | - def __getattr__(name): | ||
| 1643 | - if name == "ExecError": | ||
| 1644 | - import warnings | ||
| 1645 | - warnings._deprecated( | ||
| 1646 | - "shutil.ExecError", | ||
| 1647 | - f"{warnings._DEPRECATED_MSG}; it " | ||
| 1648 | - "isn't raised by any shutil function.", | ||
| 1649 | - remove=(3, 16) | ||
| 1650 | - ) | ||
| 1651 | - return RuntimeError | ||
| 1652 | - raise AttributeError(f"module {__name__!r} has no attribute {name!r}") | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1127,8 +1127,8 @@ def test_import_from_doesnt_clobber_load_fast_borrow(self): | |||
| 1127 | 1127 | def f(self): | |
| 1128 | 1128 | if x: pass | |
| 1129 | 1129 | self.x | |
| 1130 | - from shutil import ExecError | ||
| 1131 | - print(ExecError) | ||
| 1130 | + from heapq import heapify_max | ||
| 1131 | + print(heapify_max) | ||
| 1132 | 1132 | self.assertInBytecode(f, "LOAD_FAST_BORROW", "self") | |
| 1133 | 1133 | ||
| 1134 | 1134 | class DirectCfgOptimizerTests(CfgOptimizationTestCase): | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -3580,8 +3580,6 @@ def test_module_all_attribute(self): | |||
| 3580 | 3580 | if hasattr(os, 'statvfs') or os.name == 'nt': | |
| 3581 | 3581 | target_api.append('disk_usage') | |
| 3582 | 3582 | self.assertEqual(set(shutil.__all__), set(target_api)) | |
| 3583 | - with self.assertWarns(DeprecationWarning): | ||
| 3584 | - from shutil import ExecError # noqa: F401 | ||
| 3585 | 3583 | ||
| 3586 | 3584 | ||
| 3587 | 3585 | if __name__ == '__main__': | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,2 @@ | |||
| 1 | + Remove the :exc:`!shutil.ExecError` exception which has been deprecated | ||
| 2 | + since Python 3.14. | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments