Show More
@@ -557,3 +557,11 b' class unixdomainserver(socket.socket):' | |||||
557 | if self.realpath != self.path: |
|
557 | if self.realpath != self.path: | |
558 | okayifmissing(os.unlink, self.realpath) |
|
558 | okayifmissing(os.unlink, self.realpath) | |
559 | okayifmissing(os.rmdir, os.path.dirname(self.realpath)) |
|
559 | okayifmissing(os.rmdir, os.path.dirname(self.realpath)) | |
|
560 | ||||
|
561 | def statislink(st): | |||
|
562 | '''check whether a stat result is a symlink''' | |||
|
563 | return st and stat.S_ISLNK(st.st_mode) | |||
|
564 | ||||
|
565 | def statisexec(st): | |||
|
566 | '''check whether a stat result is an executable file''' | |||
|
567 | return st and (st.st_mode & 0100 != 0) |
@@ -65,6 +65,8 b' spawndetached = platform.spawndetached' | |||||
65 | split = platform.split |
|
65 | split = platform.split | |
66 | sshargs = platform.sshargs |
|
66 | sshargs = platform.sshargs | |
67 | statfiles = getattr(osutil, 'statfiles', platform.statfiles) |
|
67 | statfiles = getattr(osutil, 'statfiles', platform.statfiles) | |
|
68 | statisexec = platform.statisexec | |||
|
69 | statislink = platform.statislink | |||
68 | termwidth = platform.termwidth |
|
70 | termwidth = platform.termwidth | |
69 | testpid = platform.testpid |
|
71 | testpid = platform.testpid | |
70 | umask = platform.umask |
|
72 | umask = platform.umask |
@@ -337,3 +337,11 b' def lookupreg(key, valname=None, scope=N' | |||||
337 | pass |
|
337 | pass | |
338 |
|
338 | |||
339 | expandglobs = True |
|
339 | expandglobs = True | |
|
340 | ||||
|
341 | def statislink(st): | |||
|
342 | '''check whether a stat result is a symlink''' | |||
|
343 | return False | |||
|
344 | ||||
|
345 | def statisexec(st): | |||
|
346 | '''check whether a stat result is an executable file''' | |||
|
347 | return False |
General Comments 0
You need to be logged in to leave comments.
Login now