Skip to content

Commit

Permalink
[Utils] Add copyright header to logprint-scanner.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Fuzzbawls committed Jul 5, 2018
1 parent 0d91550 commit 79d618f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions contrib/devtools/logprint-scanner.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#!/usr/bin/env python
# Copyright (c) 2017-2018 The PIVX developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.

import os, sys
from subprocess import check_output

Expand Down Expand Up @@ -29,7 +33,7 @@ def countRelevantCommas(line):
filelist = [os.path.join(dp, f) for dp, dn, filenames in os.walk(srcDir) for f in filenames if os.path.splitext(f)[1] == '.cpp' or os.path.splitext(f)[1] == '.h' ]
incorrectInstanceCounter = 0

for file in filelist:
for file in filelist:
f = open(file,"r")
data = f.read()
rows = data.split("\n")
Expand Down Expand Up @@ -78,7 +82,7 @@ def countRelevantCommas(line):
print "Line = " + tempLine
print("numRelevantCommas = " + str(numCommas) + ", numRelevantPercents = " + str(numPercents))
print ""

incorrectInstanceCounter += 1

# Done with this multiline, clear tempLine
Expand Down

0 comments on commit 79d618f

Please sign in to comment.