This file is indexed.

/usr/share/fritzing/parts/scripts/checkascii.py is in fritzing-parts 0.9.3b-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import sys, os, os.path, re, optparse
    
def usage():
        print """
usage:
    checkascii.py -f [folder] 
    recursively checks that all filenames in folder are ascii
"""
    
def main():
    parser = optparse.OptionParser()
    parser.add_option('-f', '--folder', dest="folder" )
    (options, args) = parser.parse_args()
        
    if not options.folder:
        usage()
        parser.error("folder argument not given")
        return       
            
    for root, dirs, files in os.walk(options.folder, topdown=False):
        for filename in files:
            remainder = re.sub('[ -~]', '', filename)
            if len(remainder) > 0:
                print "not ascii", os.path.join(root, filename)
            
                

if __name__ == "__main__":
        main()