Revision 4c7c81d7 lib/rpc.py

b/lib/rpc.py
599 599
        to optimize the RPC speed
600 600

  
601 601
    """
602
    fh = file(file_name)
603
    try:
604
      data = fh.read()
605
    finally:
606
      fh.close()
602
    data = utils.ReadFile(file_name)
607 603
    st = os.stat(file_name)
608 604
    params = [file_name, data, st.st_mode, st.st_uid, st.st_gid,
609 605
              st.st_atime, st.st_mtime]

Also available in: Unified diff