Skip to content

Commit

Permalink
Update lockfile with f-string
Browse files Browse the repository at this point in the history
  • Loading branch information
KatherineMichel committed Jun 12, 2020
1 parent b5d89ce commit 5c41175
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pinax/notifications/lockfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ def __init__(self, path, threaded=True):
else:
tname = ""
dirname = os.path.dirname(self.lock_file)
self.unique_name = os.path.join(dirname, "{}.{}{}".format(self.hostname, tname, self.pid))
self.unique_name = os.path.join(dirname, f"{self.hostname}.{tname}{self.pid}")

def acquire(self, timeout=None):
"""
Expand Down

0 comments on commit 5c41175

Please sign in to comment.