mirror of
https://github.com/gristlabs/grist-core.git
synced 2026-03-02 04:09:24 +00:00
(core) Remaining Python 3 compatibility changes
Summary: Biggest change is turning everything to unicode Test Plan: The tests Reviewers: dsagal, paulfitz Reviewed By: dsagal Differential Revision: https://phab.getgrist.com/D2875
This commit is contained in:
@@ -157,7 +157,11 @@ class Combiner(Builder):
|
||||
def __init__(self, parts):
|
||||
self._parts = parts
|
||||
self._offsets = []
|
||||
text_parts = [(p if isinstance(p, basestring) else p.get_text()) for p in self._parts]
|
||||
text_parts = [
|
||||
(p if isinstance(p, six.text_type) else
|
||||
p.decode('utf8') if isinstance(p, six.binary_type) else
|
||||
p.get_text())
|
||||
for p in self._parts]
|
||||
self._text = ''.join(text_parts)
|
||||
|
||||
offset = 0
|
||||
|
||||
Reference in New Issue
Block a user