Skip to content

Commit 7794b74

Browse files
committed
fix:bracket_expansion
pull OpenVoiceOS/ovos-utils#317 into dependencies
1 parent e87af00 commit 7794b74

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

ovos_core/intent_services/stop_service.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
from ovos_config.config import Configuration
1212
from ovos_plugin_manager.templates.pipeline import PipelineMatch, PipelinePlugin
1313
from ovos_utils import flatten_list
14-
from ovos_utils.bracket_expansion import expand_options
14+
from ovos_utils.bracket_expansion import expand_template
1515
from ovos_utils.lang import standardize_lang_tag
1616
from ovos_utils.log import LOG
1717
from ovos_utils.parse import match_one
@@ -33,7 +33,7 @@ def load_resource_files(self):
3333
self._voc_cache[lang2] = {}
3434
for f in os.listdir(f"{base}/{lang}"):
3535
with open(f"{base}/{lang}/{f}", encoding="utf-8") as fi:
36-
lines = [expand_options(l) for l in fi.read().split("\n")
36+
lines = [expand_template(l) for l in fi.read().split("\n")
3737
if l.strip() and not l.startswith("#")]
3838
n = f.split(".", 1)[0]
3939
self._voc_cache[lang2][n] = flatten_list(lines)

requirements/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ ovos-adapt-parser>=1.0.5, <2.0.0
88
ovos_ocp_pipeline_plugin>=1.0.7, <2.0.0
99
ovos-common-query-pipeline-plugin>=1.0.5, <2.0.0
1010

11-
ovos-utils>=0.3.5,<1.0.0
11+
ovos-utils[extras]>=0.6.0a1,<1.0.0
1212
ovos_bus_client>=0.1.4,<2.0.0
1313
ovos-plugin-manager>=0.5.6,<1.0.0
1414
ovos-config>=0.0.13,<2.0.0

0 commit comments

Comments
 (0)