def make_pidlockfile(path, acquire_timeout):
 if (not isinstance(path, basestring)):
  error = ValueError(('Not a filesystem path: %(path)r' % vars()))
  raise error
 if (not os.path.isabs(path)):
  error = ValueError(('Not an absolute path: %(path)r' % vars()))
  raise error
 lockfile = pidlockfile.TimeoutPIDLockFile(path, acquire_timeout)
 return lockfile

def make_pidlockfile ( path , acquire_timeout ) : if ( not isinstance ( path , basestring ) ) : error = ValueError ( ( 'Not a filesystem path: %(path)r' % vars ( ) ) ) raise error if ( not os . path . isabs ( path ) ) : error = ValueError ( ( 'Not an absolute path: %(path)r' % vars ( ) ) ) raise error lockfile = pidlockfile . TimeoutPIDLockFile ( path , acquire_timeout ) return lockfile
make a pidlockfile instance with the given filesystem path .