diff options
author | Michael Brockus <55331536+michaelbadcrumble@users.noreply.github.com> | 2019-12-06 05:23:26 -0800 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2019-12-06 15:23:26 +0200 |
commit | 4b69aea85d442db3ec7a847812b20180217ce7a4 (patch) | |
tree | 85247c9c3d958f34d9bbb7c32de9d8ae93b8b1db /mesonbuild/wrap/wrap.py | |
parent | c0a9bca62761eb15de3c562922e3c02c5d2ff8e3 (diff) | |
download | meson-4b69aea85d442db3ec7a847812b20180217ce7a4.zip meson-4b69aea85d442db3ec7a847812b20180217ce7a4.tar.gz meson-4b69aea85d442db3ec7a847812b20180217ce7a4.tar.bz2 |
Update Python2 syntax to Python3 syntax in Wrap
Diffstat (limited to 'mesonbuild/wrap/wrap.py')
-rw-r--r-- | mesonbuild/wrap/wrap.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mesonbuild/wrap/wrap.py b/mesonbuild/wrap/wrap.py index 915640b..21dab16 100644 --- a/mesonbuild/wrap/wrap.py +++ b/mesonbuild/wrap/wrap.py @@ -378,7 +378,7 @@ class Resolver: h.update(f.read()) dhash = h.hexdigest() if dhash != expected: - raise WrapException('Incorrect hash for %s:\n %s expected\n %s actual.' % (what, expected, dhash)) + raise WrapException('Incorrect hash for {}:\n {} expected\n {} actual.'.format(what, expected, dhash)) def download(self, what: str, ofname: str) -> None: self.check_can_download() @@ -388,7 +388,7 @@ class Resolver: expected = self.wrap.get(what + '_hash') if dhash != expected: os.remove(tmpfile) - raise WrapException('Incorrect hash for %s:\n %s expected\n %s actual.' % (what, expected, dhash)) + raise WrapException('Incorrect hash for {}:\n {} expected\n {} actual.'.format(what, expected, dhash)) os.rename(tmpfile, ofname) def get_file_internal(self, what: str) -> str: |