Commit 49ef6dc
committed
Marc-Andre Lemburg <[email protected]>:
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('').1 parent 2f4d0e9 commit 49ef6dc
1 file changed
Lines changed: 4 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2106 | 2106 | | |
2107 | 2107 | | |
2108 | 2108 | | |
| 2109 | + | |
| 2110 | + | |
| 2111 | + | |
2109 | 2112 | | |
2110 | 2113 | | |
2111 | 2114 | | |
| |||
2130 | 2133 | | |
2131 | 2134 | | |
2132 | 2135 | | |
2133 | | - | |
| 2136 | + | |
2134 | 2137 | | |
2135 | 2138 | | |
2136 | 2139 | | |
| |||
3086 | 3089 | | |
3087 | 3090 | | |
3088 | 3091 | | |
3089 | | - | |
3090 | | - | |
3091 | | - | |
3092 | | - | |
3093 | | - | |
3094 | 3092 | | |
3095 | 3093 | | |
3096 | 3094 | | |
| |||
0 commit comments