Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,9 @@ repos:
additional_dependencies:
- mdformat-black
- mdformat_tables
- repo: https://github.com/codespell-project/codespell
rev: v2.3.0
hooks:
- id: codespell
additional_dependencies:
- tomli
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ You can also create new files through either putting a local file with `put_file

```py
>>> with fs.open('/tmp/message.dat', 'wb') as stream:
... stream.write(b'super secret messsage!')
... stream.write(b'super secret message!')
...
```

Expand All @@ -85,7 +85,7 @@ And either download it through `get_file` or simply read it on the fly with open
>>> with fs.open('/tmp/message.dat') as stream:
... print(stream.read())
...
b'super secret messsage!'
b'super secret message!'
```

There are also a lot of other basic filesystem operations, such as `mkdir`, `touch` and `find`;
Expand Down
2 changes: 1 addition & 1 deletion sshfs/spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ async def _finalize(self, pool, stack):

# If an error occurs while the SSHFile is trying to
# open the native file, then the client might get broken
# due to partial initalization. We are just going to ignore
# due to partial initialization. We are just going to ignore
# the errors that arises on the finalization layer
with suppress(BrokenPipeError):
await stack.aclose()
Expand Down