示例#1
0
 def load(self):
     self.content = load_file(self.path)
示例#2
0
 def load(self):
     self.content = load_file(self.path)
示例#3
0
 def split_file_content(self, filepath):
     raw_content = load_file(os.path.join(self.PATH, filepath))
     raw_output, text_content = raw_content.split(self.SEPARATOR)
     text_content = text_content.strip()
     raw_output = self.split_raw_output(raw_output)
     return raw_output, text_content
示例#4
0
文件: base.py 项目: liberation/sulci
 def load_valid_files(self):
     for f in self.valid_files:
         self._raw_content += load_file(os.path.join(self.PATH, f))
示例#5
0
 def load_valid_files(self):
     for f in self.valid_files:
         self._raw_content += load_file(os.path.join(self.PATH, f))
示例#6
0
 def split_file_content(self, filepath):
     raw_content = load_file(os.path.join(self.PATH, filepath))
     raw_output, text_content = raw_content.split(self.SEPARATOR)
     text_content = text_content.strip()
     raw_output = self.split_raw_output(raw_output)
     return raw_output, text_content