MCPcopy
hub / github.com/csev/py4e / read

Method read

lectures/srt-split/pysrt/srtfile.py:170–182  ·  view source on GitHub ↗

read(source_file, [error_handling]) This method parse subtitles contained in `source_file` and append them to the current instance. `source_file` -> Any iterable that yield unicode strings, like a file opened with `codecs.open()` or an array of unicode.

(self, source_file, error_handling=ERROR_PASS)

Source from the content-addressed store, hash-verified

168 return new_file
169
170 def read(self, source_file, error_handling=ERROR_PASS):
171 """
172 read(source_file, [error_handling])
173
174 This method parse subtitles contained in `source_file` and append them
175 to the current instance.
176
177 `source_file` -> Any iterable that yield unicode strings, like a file
178 opened with `codecs.open()` or an array of unicode.
179 """
180 self.eol = self._guess_eol(source_file)
181 self.extend(self.stream(source_file, error_handling=error_handling))
182 return self
183
184 @classmethod
185 def stream(cls, source_file, error_handling=ERROR_PASS):

Callers 15

pull.pyFile · 0.80
skulpt.jsFile · 0.80
skulpt.min.jsFile · 0.80
tinyTableFunction · 0.80
txtmd5.pyFile · 0.80
curl1.pyFile · 0.80
twitter4.pyFile · 0.80
twitter1.pyFile · 0.80
twfriends.pyFile · 0.80
urllinks.pyFile · 0.80
words.pyFile · 0.80
__init__Method · 0.80

Calls 2

_guess_eolMethod · 0.95
streamMethod · 0.95

Tested by 2

test_meFunction · 0.64
test_meFunction · 0.64