aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/wrap/wrap.py
diff options
context:
space:
mode:
authorMichael Brockus <55331536+michaelbadcrumble@users.noreply.github.com>2019-12-06 05:23:26 -0800
committerJussi Pakkanen <jpakkane@gmail.com>2019-12-06 15:23:26 +0200
commit4b69aea85d442db3ec7a847812b20180217ce7a4 (patch)
tree85247c9c3d958f34d9bbb7c32de9d8ae93b8b1db /mesonbuild/wrap/wrap.py
parentc0a9bca62761eb15de3c562922e3c02c5d2ff8e3 (diff)
downloadmeson-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.py4
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: