Ejemplo n.º 1
0
 def load(self):
     self.content = load_file(self.path)
Ejemplo n.º 2
0
 def load(self):
     self.content = load_file(self.path)
Ejemplo n.º 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
Ejemplo n.º 4
0
 def load_valid_files(self):
     for f in self.valid_files:
         self._raw_content += load_file(os.path.join(self.PATH, f))
Ejemplo n.º 5
0
 def load_valid_files(self):
     for f in self.valid_files:
         self._raw_content += load_file(os.path.join(self.PATH, f))
Ejemplo n.º 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