Skip to content

Commit cd068b4

Browse files
committed
Use f-strings for formatting.
1 parent ec64b2e commit cd068b4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ns1/rest/zones.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def import_file(
4343
params = self._buildImportParams(kwargs)
4444
return self._make_request(
4545
"PUT",
46-
"import/zonefile/%s" % (zone),
46+
"import/zonefile/{}".format(zone),
4747
files=files,
4848
params=params,
4949
callback=callback,
@@ -73,7 +73,7 @@ def create(self, zone, callback=None, errback=None, name=None, **kwargs):
7373
name = zone
7474
return self._make_request(
7575
"PUT",
76-
"%s/%s" % (self.ROOT, name),
76+
"{}/{}".format(self.ROOT, name),
7777
body=body,
7878
callback=callback,
7979
errback=errback,

0 commit comments

Comments
 (0)