File: clean_parse.py

package info (click to toggle)
python-tatsu 5.16.0%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,196 kB
  • sloc: python: 10,037; makefile: 46
file content (19 lines) | stat: -rw-r--r-- 325 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
from pathlib import Path


def main():
    paths = Path().glob('tatsu/**/*.py')
    for p in paths:
        text = p.read_text()
        if not text:
            continue
        if '->' in text:
            continue
        if 'typing' in text:
            continue

        print(p)


if __name__ == '__main__':
    main()