MCPcopy
hub / github.com/benoitc/gunicorn / rename

Method rename

gunicorn/pidfile.py:48–51  ·  view source on GitHub ↗
(self, path)

Source from the content-addressed store, hash-verified

46 os.chmod(self.fname, 420)
47
48 def rename(self, path):
49 self.unlink()
50 self.fname = path
51 self.create(self.pid)
52
53 def unlink(self):
54 """ delete pidfile"""

Callers 2

maybe_promote_masterMethod · 0.80
createMethod · 0.80

Calls 2

unlinkMethod · 0.95
createMethod · 0.95

Tested by

no test coverage detected