This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: inspect.getsourcelines() broken
Type: Stage:
Components: Library (Lib) Versions: Python 2.4
process
Status: closed Resolution: duplicate
Dependencies: Superseder:
Assigned To: Nosy List: doerwalter
Priority: normal Keywords:

Created on 2005-10-07 16:33 by doerwalter, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
buggy.py doerwalter, 2005-10-07 16:33
Messages (2)
msg26526 - (view) Author: Walter Dörwald (doerwalter) * (Python committer) Date: 2005-10-07 16:33
inspect.getsourcelines() in Python 2.4.2 breaks when
parsing the attached buggy.py although the indentation
level are OK:

>>> import inspect, buggy
>>> inspect.getsourcelines(buggy.title)

This gives a "IndentationError: unindent does not match
any outer indentation level"
msg26527 - (view) Author: Walter Dörwald (doerwalter) * (Python committer) Date: 2005-10-10 12:28
Logged In: YES 
user_id=89016

Closing this bug report as it is a duplicate of #1224621.
History
Date User Action Args
2022-04-11 14:56:13adminsetgithub: 42457
2005-10-07 16:33:00doerwaltercreate