(haystack, needle)
| 31 | return locale.getlocale(locale.LC_TIME) |
| 32 | |
| 33 | def _findall(haystack, needle): |
| 34 | # Find all positions of needle in haystack. |
| 35 | if not needle: |
| 36 | return |
| 37 | i = 0 |
| 38 | while True: |
| 39 | i = haystack.find(needle, i) |
| 40 | if i < 0: |
| 41 | break |
| 42 | yield i |
| 43 | i += len(needle) |
| 44 | |
| 45 | def _fixmonths(months): |
| 46 | yield from months |
no test coverage detected
searching dependent graphs…