File: list_todos.py

package info (click to toggle)
pytermgui 7.7.3%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 19,888 kB
  • sloc: python: 12,931; makefile: 40; sh: 37
file content (14 lines) | stat: -rw-r--r-- 286 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import sys

buffer = sys.argv[1]

for line in buffer.splitlines()[1:]:
    if line.startswith("./project-config"):
        continue

    file, comment = line.split("#")

    file = file.strip()
    comment = "# " + comment.strip()

    print(f"{file}{' ' * (40 - len(file))}{comment}")