]> granicus.if.org Git - python/commit
Patch #1159931/bug #1143895: inspect.getsource failed when functions,
authorJohannes Gijsbers <jlg@dds.nl>
Sat, 12 Mar 2005 16:37:11 +0000 (16:37 +0000)
committerJohannes Gijsbers <jlg@dds.nl>
Sat, 12 Mar 2005 16:37:11 +0000 (16:37 +0000)
commita5855d5ace1c1426e1247272c688ccc11ae02f7c
treec841015eced138476cf55a5aaf22942cd37884b6
parentf77d0334f30e331f005090723cd1d2955959a8cd
Patch #1159931/bug #1143895: inspect.getsource failed when functions,
etc., had comments after the colon, and some other cases. This patch
take a simpler approach that doesn't rely on looking for a ':'. Thanks
Simon Percivall!
Lib/inspect.py
Lib/test/inspect_fodder2.py
Lib/test/test_inspect.py