Commit c9ad298e authored by David Goulet's avatar David Goulet Committed by David Goulet
Browse files

Use pathlib Path.rename when renaming pidfile



Missing artefact from the pathlib migration.
Signed-off-by: David Goulet's avatarDavid Goulet <dgoulet@torproject.org>
parent d0f15258
......@@ -1209,7 +1209,7 @@ class LocalNodeController(NodeController):
if not self.isRunning() and pidfile.exists():
debug("Renaming stale pid file for {} ..."
.format(self._env['nick']))
os.rename(pidfile, pidfile + ".old")
pidfile.rename(pidfile.with_suffix(".old"))
def waitOnLaunch(self):
"""Check whether we can wait() for the tor process to launch"""
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment