diff options
-rw-r--r-- | doc/examples/cloud-config-apt.txt | 4 | ||||
-rwxr-xr-x | tools/validate-yaml.py | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/doc/examples/cloud-config-apt.txt b/doc/examples/cloud-config-apt.txt index 1a0fc6f2..ff8206f6 100644 --- a/doc/examples/cloud-config-apt.txt +++ b/doc/examples/cloud-config-apt.txt @@ -70,7 +70,7 @@ apt: # modifications have been made. # Suites are even disabled if no other modification was made, # but not if is preserve_sources_list is active. - # There is a special alias “$RELEASE” as in the sources that will be replace + # There is a special alias "$RELEASE" as in the sources that will be replace # by the matching release. # # To ease configuration and improve readability the following common ubuntu @@ -84,7 +84,7 @@ apt: # There is no harm in specifying a suite to be disabled that is not found in # the source.list file (just a no-op then) # - # Note: Lines don’t get deleted, but disabled by being converted to a comment. + # Note: Lines don't get deleted, but disabled by being converted to a comment. # The following example disables all usual defaults except $RELEASE-security. # On top it disables a custom suite called "mysuite" disable_suites: [$RELEASE-updates, backports, $RELEASE, mysuite] diff --git a/tools/validate-yaml.py b/tools/validate-yaml.py index ed9037d9..2f28d230 100755 --- a/tools/validate-yaml.py +++ b/tools/validate-yaml.py @@ -12,8 +12,8 @@ if __name__ == "__main__": for fn in sys.argv[1:]: sys.stdout.write("%s" % (fn)) try: - fh = open(fn, 'r') - yaml.safe_load(fh.read()) + fh = open(fn, 'rb') + yaml.safe_load(fh.read().decode('utf-8')) fh.close() sys.stdout.write(" - ok\n") except Exception as e: |