Skip to content

Commit 79d618f

Browse files
committed
[Utils] Add copyright header to logprint-scanner.py
1 parent 0d91550 commit 79d618f

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

contrib/devtools/logprint-scanner.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
#!/usr/bin/env python
2+
# Copyright (c) 2017-2018 The PIVX developers
3+
# Distributed under the MIT software license, see the accompanying
4+
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
5+
26
import os, sys
37
from subprocess import check_output
48

@@ -29,7 +33,7 @@ def countRelevantCommas(line):
2933
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' ]
3034
incorrectInstanceCounter = 0
3135

32-
for file in filelist:
36+
for file in filelist:
3337
f = open(file,"r")
3438
data = f.read()
3539
rows = data.split("\n")
@@ -78,7 +82,7 @@ def countRelevantCommas(line):
7882
print "Line = " + tempLine
7983
print("numRelevantCommas = " + str(numCommas) + ", numRelevantPercents = " + str(numPercents))
8084
print ""
81-
85+
8286
incorrectInstanceCounter += 1
8387

8488
# Done with this multiline, clear tempLine

0 commit comments

Comments
 (0)