Open the file pointed to by this path and return a file object, as the built-in open() function does.
(self, mode='r', buffering=-1, encoding=None,
errors=None, newline=None)
| 959 | st.st_dev == other_st.st_dev) |
| 960 | |
| 961 | def open(self, mode='r', buffering=-1, encoding=None, |
| 962 | errors=None, newline=None): |
| 963 | """ |
| 964 | Open the file pointed to by this path and return a file object, as |
| 965 | the built-in open() function does. |
| 966 | """ |
| 967 | if "b" not in mode: |
| 968 | encoding = io.text_encoding(encoding) |
| 969 | return io.open(self, mode, buffering, encoding, errors, newline) |
| 970 | |
| 971 | def read_bytes(self): |
| 972 | """ |
no outgoing calls
no test coverage detected