]> granicus.if.org Git - python/commit
Fix the C implementation of 'warnings' to infer the filename of the module that
authorBrett Cannon <bcannon@gmail.com>
Sat, 3 May 2008 03:19:39 +0000 (03:19 +0000)
committerBrett Cannon <bcannon@gmail.com>
Sat, 3 May 2008 03:19:39 +0000 (03:19 +0000)
commit64a4bbeb259026e6bb3e4a8864870b1ed35ffab2
tree895e181342f2856f8c3912787eb33dc022550dc1
parentab9cc1b7ad87f4f6d921ce9599aaeb6a1839fe3b
Fix the C implementation of 'warnings' to infer the filename of the module that
raised an exception properly when __file__ is not set, __name__ == '__main__',
and sys.argv[0] is a false value.

Closes issue2743.
Lib/test/test_warnings.py
Python/_warnings.c