mirror of
https://github.com/gristlabs/grist-core.git
synced 2026-03-02 04:09:24 +00:00
(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:
@@ -10,6 +10,9 @@ Before changing this file, please review:
|
||||
|
||||
import itertools
|
||||
from collections import OrderedDict, namedtuple
|
||||
|
||||
import six
|
||||
|
||||
import actions
|
||||
|
||||
SCHEMA_VERSION = 21
|
||||
@@ -310,7 +313,7 @@ def cols_to_dict_list(cols):
|
||||
|
||||
def clone_schema(schema):
|
||||
return OrderedDict((t, SchemaTable(s.tableId, s.columns.copy()))
|
||||
for (t, s) in schema.iteritems())
|
||||
for (t, s) in six.iteritems(schema))
|
||||
|
||||
def build_schema(meta_tables, meta_columns, include_builtin=True):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user