Skip to content

Commit

Permalink
Use f-strings for formatting.
Browse files Browse the repository at this point in the history
  • Loading branch information
hhellyer committed Jul 5, 2024
1 parent 5b29159 commit 4728a24
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ns1/rest/zones.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def import_file(
params = self._buildImportParams(kwargs)
return self._make_request(
"PUT",
"import/zonefile/%s" % (zone),
"import/zonefile/{}".format(zone),
files=files,
params=params,
callback=callback,
Expand Down Expand Up @@ -73,7 +73,7 @@ def create(self, zone, callback=None, errback=None, name=None, **kwargs):
name = zone
return self._make_request(
"PUT",
"%s/%s" % (self.ROOT, name),
"{}/{}".format(self.ROOT, name),
body=body,
callback=callback,
errback=errback,
Expand Down

0 comments on commit 4728a24

Please sign in to comment.