aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatti Picus <matti.picus@gmail.com>2022-11-21 19:14:55 +0200
committerMatti Picus <matti.picus@gmail.com>2022-11-21 19:14:55 +0200
commit9b1303310efba359b39aead5e3311bea1dd60699 (patch)
treeeba4ae8dabb4c4b84386729e4fab7cf3bbbf3fb8 /lib-python/3
parentmake this rc1 (diff)
parentmerge default, including the changes done long ago in 8eb1cf456a46 that were (diff)
downloadpypy-release-pypy3.8-v7.3.10rc2.tar.gz
pypy-release-pypy3.8-v7.3.10rc2.tar.bz2
pypy-release-pypy3.8-v7.3.10rc2.zip
Diffstat (limited to 'lib-python/3')
-rw-r--r--lib-python/3/warnings.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib-python/3/warnings.py b/lib-python/3/warnings.py
index 691ccddfa4..758ec97f71 100644
--- a/lib-python/3/warnings.py
+++ b/lib-python/3/warnings.py
@@ -532,6 +532,10 @@ except ImportError:
_filters_version += 1
_warnings_defaults = False
+else:
+ # the del is for pypy's celldict: make the globals "never mutated" ones
+ del warn, warn_explicit
+ from _warnings import (warn, warn_explicit)
# Module initialization