From a4bd2fa3796969e2ae3597eed1894534903a7021 Mon Sep 17 00:00:00 2001 From: Michael Howitz Date: Tue, 20 Dec 2022 13:33:06 +0100 Subject: [PATCH] Run pyupgrade. --- src/zc/recipe/cmmi/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/zc/recipe/cmmi/__init__.py b/src/zc/recipe/cmmi/__init__.py index f467d7a..7219cc9 100644 --- a/src/zc/recipe/cmmi/__init__.py +++ b/src/zc/recipe/cmmi/__init__.py @@ -35,7 +35,7 @@ def system(c): subprocess.check_call(c, shell=True) -class Recipe(object): +class Recipe: def __init__(self, buildout, name, options): self.buildout, self.name, self.options = buildout, name, options @@ -106,7 +106,7 @@ def _state_hash(self): # ./configure options will get a different build directory. # Be sure to sort to keep a consistent order, since dictionary # iteration order is never guaranteed. - env = ''.join(['%s%s' % (key, value) for key, value + env = ''.join(['{}{}'.format(key, value) for key, value in sorted(self.environ.items())]) state = [self.url, self.extra_options, self.autogen, self.patch, self.patch_options, env] @@ -223,6 +223,6 @@ def cmmi(self, dest): options = '--prefix="%s"' % dest if self.extra_options: options += ' %s' % self.extra_options - system("%s %s" % (self.configure_cmd, options)) + system("{} {}".format(self.configure_cmd, options)) system("make") system("make install")