diff mercurial/scmutil.py @ 43426:6f9f15a476a4

rust-cpython: remove useless Option<$leaked> from py_shared_iterator We no longer need to carefully drop the iterator when it's consumed. Mutation is allowed even if the iterator exists. There's a minor behavior change: next(iter) may return/raise something other than StopIteration if it's called after the iterator has been fully consumed, and if the Rust object isn't a FusedIterator.
author Yuya Nishihara <yuya@tcha.org>
date Sat, 12 Oct 2019 20:48:30 +0900
parents 54e943b28101
children 899e55e2d375
line wrap: on
line diff