Skip to content

Commit 7c68241

Browse files
committed
lib: use bytes_to_str() in xlog_rows()
Patch follows up commit 395edeb ('python3: decouple bytes and strings') and it is a part of task with switching to Python 3. Follows up: #20
1 parent b09099e commit 7c68241

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ def xlog_rows(xlog_path):
290290
with open(os.devnull, 'w') as devnull:
291291
process = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=devnull)
292292
for line in process.stdout.readlines():
293-
yield json.loads(line)
293+
yield json.loads(bytes_to_str(line))
294294

295295

296296
def extract_schema_from_snapshot(snapshot_path):

0 commit comments

Comments
 (0)