From 894e05cccf1c99de9e1ef927c6ae52c13a5f336a Mon Sep 17 00:00:00 2001 From: Dave Hirschfeld Date: Sun, 25 Jun 2023 22:24:04 +1000 Subject: [PATCH] Open recipe file in binary format (#354) --- boa/core/render.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/boa/core/render.py b/boa/core/render.py index ed0497b8..3e61ab14 100644 --- a/boa/core/render.py +++ b/boa/core/render.py @@ -169,7 +169,7 @@ def default_jinja_vars(config): def render(recipe_path, config=None, is_pyproject_recipe=False): # console.print(f"\n[yellow]Rendering {recipe_path}[/yellow]\n") # step 1: parse YAML - with open(recipe_path, "r") as fi: + with open(recipe_path, "rb") as fi: if is_pyproject_recipe: try: # Python >=3.11 import tomllib