MCPcopy Index your code
hub / github.com/RustPython/RustPython / _plain_replace

Method _plain_replace

Lib/difflib.py:879–891  ·  view source on GitHub ↗
(self, a, alo, ahi, b, blo, bhi)

Source from the content-addressed store, hash-verified

877 yield '%s %s' % (tag, x[i])
878
879 def _plain_replace(self, a, alo, ahi, b, blo, bhi):
880 assert alo < ahi and blo < bhi
881 # dump the shorter block first -- reduces the burden on short-term
882 # memory if the blocks are of very different sizes
883 if bhi - blo < ahi - alo:
884 first = self._dump('+', b, blo, bhi)
885 second = self._dump('-', a, alo, ahi)
886 else:
887 first = self._dump('-', a, alo, ahi)
888 second = self._dump('+', b, blo, bhi)
889
890 for g in first, second:
891 yield from g
892
893 def _fancy_replace(self, a, alo, ahi, b, blo, bhi):
894 r"""

Callers 1

_fancy_helperMethod · 0.95

Calls 1

_dumpMethod · 0.95

Tested by

no test coverage detected