File: evaluate_pycheckeroutput.py

package info (click to toggle)
drpython 1%3A3.11.0-2
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 2,572 kB
  • ctags: 1,504
  • sloc: python: 16,099; sh: 319; makefile: 39
file content (22 lines) | stat: -rw-r--r-- 532 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22

import os
os.chdir('pycoutput')

for i in os.listdir('.'):
    if i.endswith('.pyt'):
      f = open (i, 'r')
      for l in f:
          if l.find('\\wx\\') == -1:
              if l.find('Parameter (') > -1:
                  if l.find('(event)') > -1:
                      pass
                  else:
                      print l
              if l.find('No global') > -1:
                      print l
      f.close()
      #put to list and call unique
      #then output the list

os.chdir('..')