Skip to content

Commit

Permalink
build: fix encoding when reading plugin files
Browse files Browse the repository at this point in the history
  • Loading branch information
bastimeyer committed May 11, 2024
1 parent fef6fd6 commit 996c814
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build_backend/plugins_json.py
Expand Up @@ -443,7 +443,7 @@ def build(pluginsdir: Path = DEFAULT_PLUGINSPATH) -> Output:
for file in pluginsdir.glob("*.py"):
name = file.name
plugin = re.sub(r"\.py$", "", name)
source = file.read_text()
source = file.read_text(encoding="utf-8")

tree = ast.parse(source, str(file))
visitor = PluginVisitor()
Expand Down

0 comments on commit 996c814

Please sign in to comment.