-
Notifications
You must be signed in to change notification settings - Fork 19
Solution to https://github.com/fsspec/sshfs/issues/54 #57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| install_requires = | ||
| fsspec>=2021.8.1 | ||
| asyncssh>=2.11.0,<3 | ||
| asyncssh==2.19.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's keep it this way:
| asyncssh==2.19.0 | |
| asyncssh>=2.11.0,<3 |
|
|
||
| if local_user is None: | ||
| with suppress(KeyError): | ||
| with suppress(OSError): # Use OSError as getuser() might raise this. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's keep KeyError too. I see that it raises OSError now in 3.13, but that is not true for older versions.
| with suppress(OSError): # Use OSError as getuser() might raise this. | |
| with suppress(OSError): # Use OSError as getuser() might raise this. |
| return SSHClientConfig.load( | ||
| # Check asyncssh version | ||
| version = tuple(map(int, asyncssh.__version__.split("."))) | ||
| if version <= (2, 18, 0): # Compare version properly |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| if version <= (2, 18, 0): # Compare version properly | |
| if version < (2, 19, 0): # Compare version properly |
| canonical, # Use correct parameter | ||
| final, # Use correct parameter |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All these comments are unnecessary.
| def parse_config( | ||
| *, host, user=(), port=(), local_user=None, config_files=None | ||
| ): | ||
| def parse_config(*, host, user=(), port=(), local_user=None, config_files=None): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd also add a warning that the function is deprecated.
No description provided.