]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Allow for the possibility that globals['__name__'] does not exist;
authorGuido van Rossum <guido@python.org>
Fri, 31 Aug 2001 17:46:35 +0000 (17:46 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 31 Aug 2001 17:46:35 +0000 (17:46 +0000)
commit8031bbec4a50d98b53815d77e4c5fe8549ab97eb
tree499117b5f16bd61bf8136975d45c8a010a9a84e3
parent393661d15fa76ec46e9f7b71e97bf2ed38470620
Allow for the possibility that globals['__name__'] does not exist;
substitute "<string>" for the module name in that case.  This actually
occurred when running test_descr.py with -Dwarn.
Lib/warnings.py