delete code line count

This commit is contained in:
pycook 2016-01-01 10:08:45 +08:00 committed by pycook
parent 1b4396bafd
commit ac48e1cb19
2 changed files with 1 additions and 15 deletions

1
.gitignore vendored
View File

@ -20,3 +20,4 @@ core/special.py
lib/special lib/special
lib/audit* lib/audit*
templates/*audit* templates/*audit*
codeLin*

View File

@ -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