def get_pid (self):

        try:

            pf = file(self.pidfile, 'r')
            pid = int(pf.read().strip())
            pf.close()

        except IOError:
            pid = None

        except __HOLE__:
            pid = None

        return pid
dataset/ETHPy150Open leonjza/hogar/hogar/Utils/Daemon.py/Daemon.get_pid