MCPcopy Index your code
hub / github.com/hellerve/programming-talks / get_number_of_lines

Function get_number_of_lines

scripts/add_years.py:17–20  ·  view source on GitHub ↗
(file_name)

Source from the content-addressed store, hash-verified

15
16
17def get_number_of_lines(file_name):
18 with open(file_name, 'r') as f:
19 # no really, this is somehow faster than sum()
20 return len([l for l in f])
21
22
23def has_youtubedl():

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected