Skip to content

Commit 35a35e0

Browse files
author
Dario Berzano
authored
More Python 3 fixes (O2-636) (#32)
1 parent aa20be5 commit 35a35e0

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

utility/ThinCompilationsDatabase.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,11 @@ def queryListOfHeaders(command):
108108
proc=subprocess.Popen(command, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
109109
headerlist=[]
110110
for line in proc.stdout:
111-
if matchesHeader(line.strip(), headerlist):
112-
headerlist.append(line.strip())
111+
line = line.strip()
112+
if matchesHeader(line, headerlist):
113+
if isinstance(line, bytes):
114+
line = line.decode('utf-8')
115+
headerlist.append(line)
113116
return headerlist
114117

115118
# service that processes one item in the queue

0 commit comments

Comments
 (0)