no point in keeping any whitespace on line endings

This commit is contained in:
2025-11-05 19:12:55 +01:00
parent e0382aa3f6
commit 5137dd1475
+1 -1
View File
@@ -34,7 +34,7 @@ class LineProfiler:
if self.prev_time is not None:
filename = self.prev_frame.f_code.co_filename
lineno = self.prev_lineno
line = linecache.getline(filename, lineno).rstrip("\n")
line = linecache.getline(filename, lineno).rstrip()
key = (lineno, line)
delta = now - self.prev_time
self.timings[filename][key] += delta