Skip to content

Commit 80b6589

Browse files
[green-dragon-migration] Update inspect_log.py to python3 (#154)
## In This PR * Simply update inspect_log.py to python3 This code has been tested on https://green.lab.llvm.org/
1 parent 39f55ed commit 80b6589

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

zorg/jenkins/inspect_log.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22
#
33
# Search a given log file for patterns defined in patterns.py and produce a
44
# HTML snippet for the matching lines.
@@ -10,7 +10,7 @@
1010
# with the count (i.e. "warning: bla blup [20 times]")
1111
# Could merge the first 2 or 3 instances to show in the details section.
1212
# - Write highlighted html log with all matches highlighted/linked?
13-
from cgi import escape
13+
from html import escape
1414
from collections import deque
1515
from patterns import default_search
1616
import os.path

0 commit comments

Comments
 (0)