contrib/check-code.py
branchstable
changeset 30245 01703a8b8a46
parent 29796 6ab838b20359
child 30246 b4c0f8d5edd2
equal deleted inserted replaced
30244:4e934804cafe 30245:01703a8b8a46
   535     except IOError as e:
   535     except IOError as e:
   536         print("Skipping %s, %s" % (f, str(e).split(':', 1)[0]))
   536         print("Skipping %s, %s" % (f, str(e).split(':', 1)[0]))
   537         return result
   537         return result
   538 
   538 
   539     for name, match, magic, filters, pats in checks:
   539     for name, match, magic, filters, pats in checks:
       
   540         post = pre # discard filtering result of previous check
   540         if debug:
   541         if debug:
   541             print(name, f)
   542             print(name, f)
   542         fc = 0
   543         fc = 0
   543         if not (re.match(match, f) or (magic and re.search(magic, pre))):
   544         if not (re.match(match, f) or (magic and re.search(magic, pre))):
   544             if debug:
   545             if debug: