Commit 56da892
authored
UPath.open: add mode argument default (#61)
The missing default for the `mode` argument lead to errors, as the default of `HTTPFile` in fsspec is `rb`, not `r` as in Paths.
E.g. the following command produced an error before, which is fixed by using the actual Path implementation default:
```python
from upath import UPath
UPath("http://raw.githubusercontent.com/fsspec/universal_pathlib/main/README.md").open(encoding="utf-8").read()
```1 parent fd10643 commit 56da892
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
33 | | - | |
| 32 | + | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| |||
0 commit comments