comparison mercurial/util.py @ 3859:8c24b6fd5866

fix errors spotted by pychecker
author Benoit Boissinot <benoit.boissinot@ens-lyon.org>
date Sun, 10 Dec 2006 19:41:57 +0100
parents 4f6db0233606
children 8e907b86126b
comparison
equal deleted inserted replaced
3858:7c12958eba26 3859:8c24b6fd5866
900 """Return True if the file object f belongs to the current user. 900 """Return True if the file object f belongs to the current user.
901 901
902 The return value of a util.fstat(f) may be passed as the st argument. 902 The return value of a util.fstat(f) may be passed as the st argument.
903 """ 903 """
904 if st is None: 904 if st is None:
905 st = fstat(f) 905 st = fstat(fp)
906 return st.st_uid == os.getuid() 906 return st.st_uid == os.getuid()
907 907
908 def _buildencodefun(): 908 def _buildencodefun():
909 e = '_' 909 e = '_'
910 win_reserved = [ord(x) for x in '|\?*<":>+[]'] 910 win_reserved = [ord(x) for x in '|\?*<":>+[]']