Skip to content

Commit

Permalink
(PR 3.0.0) Comment 9/10 of @sonofmun review : Used _parse_wrapper in …
Browse files Browse the repository at this point in the history
…resolvers.cts.local
  • Loading branch information
PonteIneptique committed Oct 15, 2019
1 parent 2fdae24 commit 713e0db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions MyCapytain/resolvers/cts/local.py
Expand Up @@ -286,14 +286,14 @@ def parse(self, resource):
for folder in resource:
cts_files = glob("{base_folder}/data/*/__cts__.xml".format(base_folder=folder))
for cts_file in cts_files:
textgroup, cts_file = self._parse_textgroup(cts_file)
textgroup, cts_file = self._parse_textgroup_wrapper(cts_file)
textgroups.append((textgroup, cts_file))

for textgroup, cts_textgroup_file in textgroups:
cts_work_files = glob("{parent}/*/__cts__.xml".format(parent=os.path.dirname(cts_textgroup_file)))

for cts_work_file in cts_work_files:
_, parsed_texts, directory = self._parse_work(cts_work_file, textgroup)
_, parsed_texts, directory = self._parse_work_wrapper(cts_work_file, textgroup)
texts.extend([(text, directory) for text in parsed_texts])

for text, directory in texts:
Expand Down

0 comments on commit 713e0db

Please sign in to comment.