Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/mixt/codec/register.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def pyxl_transform(stream):
traceback.print_exc()
raise

return output.rstrip()
return output

def pyxl_transform_string(input):
stream = io.StringIO(bytes(input).decode('utf-8'))
Expand Down
6 changes: 3 additions & 3 deletions src/mixt/vendor/pytypes/type_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ def is_iterator(obj):
it does not check w.r.t. (capital) Iterator class from
typing.
"""
return isinstance(obj, collections.Iterator)
return isinstance(obj, collections.abc.Iterator)

def is_Type(tp):
"""Python version independent check if an object is a type.
Expand Down Expand Up @@ -2247,7 +2247,7 @@ def _make_iterator_error_message(tp, itr, expected_tp, incomp_text,
type_str(tp, bound_Generic=bound_Generic, bound_typevars=bound_typevars))


class _typechecked_Iterable(collections.Iterable):
class _typechecked_Iterable(collections.abc.Iterable):
def __init__(self, iter_obj, cls, bound_Generic, bound_typevars,
bound_typevars_readonly, follow_fwd_refs, _recursion_check, force):
if not hasattr(iter_obj, '__iter__'):
Expand All @@ -2272,7 +2272,7 @@ def __getattr__(self, name):
return getattr(self.iter_obj, name)


class _typechecked_Iterator(collections.Iterator, _typechecked_Iterable):
class _typechecked_Iterator(collections.abc.Iterator, _typechecked_Iterable):
def __init__(self, iter_obj, cls, bound_Generic, bound_typevars,
bound_typevars_readonly, follow_fwd_refs, _recursion_check, force):
if not hasattr(iter_obj, '__iter__'):
Expand Down