def get_pidfile(pidfile):
 with salt.utils.fopen(pidfile) as pdf:
  pid = pdf.read()
 return int(pid)

def get_pidfile ( pidfile ) : with salt . utils . fopen ( pidfile ) as pdf : pid = pdf . read ( ) return int ( pid )
return the pid from a pidfile as an integer .