mirror of
https://github.com/python/cpython.git
synced 2026-05-12 15:39:22 -04:00
49ef6dc1f4
Fixed a bug in PyUnicode_Count() which would have caused a
core dump in case of substring coercion failure.
Synchronized .count() with the string method of the same name
to return len(s)+1 for s.count('').