Skip to content

Commit 558c18c

Browse files
authored
Merge branch 'master' into with-response
Signed-off-by: Lala Sabathil <[email protected]>
2 parents aeb0463 + a14c320 commit 558c18c

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

count_sourcelines.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
# prints recursive count of lines of python source code from current directory
2-
# includes an ignore_list. also prints total sloc
3-
41
import os
52

63
cur_path = os.getcwd()
@@ -13,7 +10,6 @@
1310
if py_file.endswith(".py") and py_file not in ignore_set:
1411
total_path = os.path.join(py_dir, py_file)
1512
try:
16-
# Open the file with UTF-8 encoding
1713
with open(total_path, encoding="utf-8") as file:
1814
loc_list.append(
1915
(len(file.read().splitlines()), total_path.split(cur_path)[1])

0 commit comments

Comments
 (0)