(core) Simple Python 3 compatibility changes

Summary: Changes that move towards python 3 compatibility that are easy to review without much thought

Test Plan: The tests

Reviewers: dsagal

Reviewed By: dsagal

Differential Revision: https://phab.getgrist.com/D2873
This commit is contained in:
Alex Hall
2021-06-22 17:12:25 +02:00
parent cc04c6481a
commit 16f297a250
66 changed files with 551 additions and 437 deletions

View File

@@ -3,6 +3,8 @@ import math
import os
import re
import six
import actions
import logger
@@ -103,7 +105,7 @@ def parse_test_sample(obj, samples={}):
}
data = {t: table_data_from_rows(t, data[0], data[1:])
for t, data in obj["DATA"].iteritems()}
for t, data in six.iteritems(obj["DATA"])}
return {"SCHEMA": schema, "DATA": data}