equal
deleted
inserted
replaced
110 oslink = platform.oslink |
110 oslink = platform.oslink |
111 parsepatchoutput = platform.parsepatchoutput |
111 parsepatchoutput = platform.parsepatchoutput |
112 pconvert = platform.pconvert |
112 pconvert = platform.pconvert |
113 poll = platform.poll |
113 poll = platform.poll |
114 posixfile = platform.posixfile |
114 posixfile = platform.posixfile |
|
115 readlink = platform.readlink |
115 rename = platform.rename |
116 rename = platform.rename |
116 removedirs = platform.removedirs |
117 removedirs = platform.removedirs |
117 samedevice = platform.samedevice |
118 samedevice = platform.samedevice |
118 samefile = platform.samefile |
119 samefile = platform.samefile |
119 samestat = platform.samestat |
120 samestat = platform.samestat |
1839 os.write(ld, info) |
1840 os.write(ld, info) |
1840 os.close(ld) |
1841 os.close(ld) |
1841 |
1842 |
1842 def readlock(pathname): |
1843 def readlock(pathname): |
1843 try: |
1844 try: |
1844 return os.readlink(pathname) |
1845 return readlink(pathname) |
1845 except OSError as why: |
1846 except OSError as why: |
1846 if why.errno not in (errno.EINVAL, errno.ENOSYS): |
1847 if why.errno not in (errno.EINVAL, errno.ENOSYS): |
1847 raise |
1848 raise |
1848 except AttributeError: # no symlink in os |
1849 except AttributeError: # no symlink in os |
1849 pass |
1850 pass |