diff --git a/.gitignore b/.gitignore index 1cc6836..57532b8 100755 --- a/.gitignore +++ b/.gitignore @@ -20,3 +20,4 @@ core/special.py lib/special lib/audit* templates/*audit* +codeLin* diff --git a/codeLineCnt.py b/codeLineCnt.py deleted file mode 100644 index 247aa7d..0000000 --- a/codeLineCnt.py +++ /dev/null @@ -1,15 +0,0 @@ -import os -from collections import defaultdict - -d = defaultdict(int) # value is 'int' - -for dirpath, dirnames, filenames in os.walk('.'): - for filename in filenames: - if dirpath.endswith("tools"): - continue - path = os.path.join(dirpath, filename) - ext = os.path.splitext(filename)[1] - d[ext] += len(list(open(path))) - -for ext, n_lines in d.items(): - print ext, n_lines