equal
deleted
inserted
replaced
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 '|\?*<":>+[]'] |