diff options
Diffstat (limited to 'buildstream/_yaml.py')
-rw-r--r-- | buildstream/_yaml.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/buildstream/_yaml.py b/buildstream/_yaml.py index 0af53c5f7..c771e1b82 100644 --- a/buildstream/_yaml.py +++ b/buildstream/_yaml.py @@ -191,7 +191,7 @@ def load(filename, shortname=None, copy_tree=False): def load_data(data, shortname=None, copy_tree=False): try: - contents = yaml.load(data, yaml.loader.RoundTripLoader) + contents = yaml.load(data, yaml.loader.RoundTripLoader, preserve_quotes=True) except (yaml.scanner.ScannerError, yaml.composer.ComposerError, yaml.parser.ParserError) as e: raise LoadError(LoadErrorReason.INVALID_YAML, "Malformed YAML:\n\n{}\n\n{}\n".format(e.problem, e.problem_mark)) from e |