Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)

        def readpid(path):
    with open(path) as f:
        pid = f.read().strip()
    if not pid.isdigit():
        raise PIDFileError('Malformed PID file at path {}'.format(path))
    return pid
        


src/d/a/daemonic-0.6/daemonic/daemon.py   daemonic(Download)
    def stop(self):
        if self.pidfile is not None:
            pid = pidfile.readpid(self.pidfile)
            try:
                while True:

src/d/a/daemonic-HEAD/daemonic/daemon.py   daemonic(Download)
    def stop(self):
        if self.pidfile is not None:
            pid = pidfile.readpid(self.pidfile)
            try:
                while True: