Skip to content

Commit

Permalink
SG-30649 Specify 'utf8' encoding when read YAML data from disk. (#881)
Browse files Browse the repository at this point in the history
* Specify utf8 encoding when read YAML data from disk.
* Turn off Hound's 'Black would make changes' msg.
* Use double quoting in the encoding parameter value and store  Hound's black check.
  • Loading branch information
NorberMV committed Jun 22, 2023
1 parent f3e6c9d commit 9a3cf8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/tank/util/yaml_cache.py
Expand Up @@ -256,7 +256,7 @@ def _populate_cache_item_data(self, item):
"""
path = item.path
try:
with open(path, "r") as fh:
with open(path, "r", encoding="utf8") as fh:
raw_data = yaml.load(fh, Loader=yaml.FullLoader)
except IOError:
raise TankFileDoesNotExistError("File does not exist: %s" % path)
Expand Down

0 comments on commit 9a3cf8f

Please sign in to comment.