initial changes to use f strings

This commit is contained in:
Blake Harnden 2019-10-17 18:59:50 -07:00
parent da946f1f56
commit c9326b6a97
8 changed files with 70 additions and 72 deletions

View file

@ -344,7 +344,7 @@ class TunTap(CoreInterface):
if r == 0:
result = True
break
msg = "attempt %s failed with nonzero exit status %s" % (i, r)
msg = f"attempt {i} failed with nonzero exit status {r}"
if i < attempts + 1:
msg += ", retrying..."
logging.info(msg)
@ -480,7 +480,7 @@ class GreTap(CoreInterface):
self.id = _id
sessionid = self.session.short_session_id()
# interface name on the local host machine
self.localname = "gt.%s.%s" % (self.id, sessionid)
self.localname = f"gt.{self.id}.{sessionid}"
self.transport_type = "raw"
if not start:
self.up = False