Show More
@@ -60,6 +60,7 b' from .utils import (' | |||||
60 |
|
60 | |||
61 | if pycompat.TYPE_CHECKING: |
|
61 | if pycompat.TYPE_CHECKING: | |
62 | from typing import ( |
|
62 | from typing import ( | |
|
63 | Iterable, | |||
63 | Iterator, |
|
64 | Iterator, | |
64 | List, |
|
65 | List, | |
65 | Optional, |
|
66 | Optional, | |
@@ -2910,7 +2911,7 b' def iterfile(fp):' | |||||
2910 |
|
2911 | |||
2911 |
|
2912 | |||
2912 | def iterlines(iterator): |
|
2913 | def iterlines(iterator): | |
2913 |
# type: (Itera |
|
2914 | # type: (Iterable[bytes]) -> Iterator[bytes] | |
2914 | for chunk in iterator: |
|
2915 | for chunk in iterator: | |
2915 | for line in chunk.splitlines(): |
|
2916 | for line in chunk.splitlines(): | |
2916 | yield line |
|
2917 | yield line |
General Comments 0
You need to be logged in to leave comments.
Login now