projects
/
deliverable
/
lttng-ivc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Basic utils
[deliverable/lttng-ivc.git]
/
lttng_ivc
/
utils
/
utils.py
diff --git a/lttng_ivc/utils/utils.py
b/lttng_ivc/utils/utils.py
new file mode 100644
(file)
index 0000000..
20a424d
--- /dev/null
+++ b/
lttng_ivc/utils/utils.py
@@ -0,0
+1,6
@@
+def line_count(file_path):
+ line_count = 0
+ with open(file_path) as f:
+ for line in f:
+ line_count += 1
+ return line_count
This page took
0.02405 seconds
and
5
git commands to generate.