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")