initial changes to use f strings
This commit is contained in:
parent
da946f1f56
commit
c9326b6a97
8 changed files with 70 additions and 72 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue