コード例 #1
0
ファイル: model.py プロジェクト: pauloladimeji/robotkernel
 def populate(self, source):
     LOGGER.info("Parsing string '%s'." % source)
     try:
         TxtReader().read(BytesIO(source.encode("utf-8")), self)
     except Exception:
         raise DataError(get_error_message())
コード例 #2
0
 def test_split_row_with_pipe(self):
     raw_text = "| col0 | col1   | col2"
     expected = ["col0", "col1", "col2"]
     assert_equal(TxtReader.split_row(raw_text), expected)
     assert_equal(TxtReader().split_row(raw_text), expected)
コード例 #3
0
ファイル: texteditor.py プロジェクト: MEDBEDb/RIDE
 def populate(self, content):
     TxtReader().read(content, self)