Skip to content

Commit 032dc0b

Browse files
committed
Always run rstrip
1 parent 41ca79f commit 032dc0b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

osg-test-log-viewer

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ def load_logdata_from_handle(handle):
3838

3939
for line in handle:
4040
if six.PY3:
41-
line = line.decode(errors="replace").rstrip()
41+
line = line.decode(errors="replace")
42+
line = line.rstrip()
4243
command_match = re.match(r'(?x)osgtest: \s* ' + datetime_re + r''': \s*
4344
(?P<test>[^:]+:[^:]+):
4445
(?P<lineno>\d+): \s*

0 commit comments

Comments
 (0)