Skip to content

Commit

Permalink
Run pyupgrade.
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Howitz committed Dec 20, 2022
1 parent 991aede commit a4bd2fa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/zc/recipe/cmmi/__init__.py
Expand Up @@ -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
Expand Down Expand Up @@ -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]
Expand Down Expand Up @@ -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")

0 comments on commit a4bd2fa

Please sign in to comment.