Basic utils
authorJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Tue, 24 Oct 2017 14:51:14 +0000 (10:51 -0400)
committerJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Tue, 24 Oct 2017 14:51:14 +0000 (10:51 -0400)
Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
lttng_ivc/utils/utils.py [new file with mode: 0644]

diff --git a/lttng_ivc/utils/utils.py b/lttng_ivc/utils/utils.py
new file mode 100644 (file)
index 0000000..20a424d
--- /dev/null
@@ -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.024997 seconds and 5 git commands to generate.