(self, s, partial=False)
| 666 | Openable file |
| 667 | """ |
| 668 | def valid(self, s, partial=False): |
| 669 | # set self.val if the specified path is readable or writable |
| 670 | s = os.path.abspath(s) |
| 671 | if not os.access(s, os.R_OK): |
| 672 | self._validate_writable_file(s) |
| 673 | self.val = s |
| 674 | |
| 675 | def _validate_writable_file(self, fname): |
| 676 | if os.path.exists(fname): |
nothing calls this directly
no test coverage detected