]> granicus.if.org Git - python/commit
SF bug #661184: inspect.getsource bug
authorRaymond Hettinger <python@rcn.com>
Tue, 14 Jan 2003 02:19:36 +0000 (02:19 +0000)
committerRaymond Hettinger <python@rcn.com>
Tue, 14 Jan 2003 02:19:36 +0000 (02:19 +0000)
commit2d375f78a570dc627daf61df9d12473633055cdf
treead7ea73d0fecfceebc716fbf8efe8b474ff126f1
parent9896ea24f9dd0ad895f2095b5680fafc901fea6f
SF bug #661184: inspect.getsource bug

inspect.getsource would crash with one line definitions like:
   def f(x): return x
or
   f = lambda x: x
Lib/inspect.py