Maybe this would suffice?
for i, line in enumerate(open(file_name, 'r')):
if 'TODO' in line:
print(i, line)
Den fredag den 17. oktober 2014 20.34.26 UTC+2 skrev Adrian Klaver:
>
> Spyder 2.3.1
>
> I have Tasks enabled in the Editor Preferences.
> I have created TODO items in my code and I see the blue check mark in
> the margin.
> How do I create/see a list of the TODO items?
>
> --
> Adrian Klaver
> [email protected] <javascript:>
>
--
You received this message because you are subscribed to the Google Groups
"spyder" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/spyderlib.
For more options, visit https://groups.google.com/d/optout.