summaryrefslogtreecommitdiff
path: root/paramiko
Commit message (Collapse)AuthorAgeFilesLines
* Cut 3.1.03.1.0Jeff Forcier2023-03-101-1/+1
|
* codespellJeff Forcier2023-03-101-1/+1
|
* Merge branch 'main' into 2013-intJeff Forcier2023-03-1010-37/+61
|\
| * flake8 re #2193Jeff Forcier2023-03-031-2/+2
| |
| * Expand documentation on server agent handling.Jamie Bliss2023-02-242-0/+17
| |
| * hostkeys: update docstring for autdodoc per #2173Alex Chavkin2023-02-161-1/+2
| |
| * Double quotes to pass style checkAlex Chavkin2023-02-161-1/+1
| |
| * Split known_hosts fields on either a single space or tabAlex Chavkin2023-02-161-1/+2
| |
| * Split known host file entries on any whitespaceAlex Chavkin2023-02-161-1/+1
| | | | | | | | | | | | (Not just a single space) OpenSSH is more permissive in documentation and code
| * [DATALAD RUNCMD] Run codespell -wYaroslav Halchenko2023-01-246-13/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | === Do not change lines below === { "chain": [], "cmd": "codespell -w", "exit": 0, "extra_inputs": [], "inputs": [], "outputs": [], "pwd": "." } ^^^ Do not change lines above ^^^
| * Harmonize into *args from *larg, *largsYaroslav Halchenko2023-01-245-14/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Initially spotted since 'larg' was picked up by codespell as something possibly to fix to become 'large'. But realized that it is just an inconsistency. Had various uses: ❯ git grep '\*arg\>' | nl 1 paramiko/sftp_client.py: def _request(self, t, *arg): 2 paramiko/sftp_client.py: num = self._async_request(type(None), t, *arg) 3 paramiko/sftp_client.py: def _async_request(self, fileobj, t, *arg): 4 paramiko/sftp_server.py: def _response(self, request_number, t, *arg): ❯ git grep '\*largs\>' | nl 1 paramiko/sftp_server.py: *largs, 2 paramiko/sftp_server.py: self.server = sftp_si(server, *largs, **kwargs) 3 paramiko/sftp_si.py: def __init__(self, server, *largs, **kwargs): 4 paramiko/sftp_si.py: super().__init__(*largs, **kwargs) ❯ git grep '\*larg\>' | nl 1 paramiko/server.py: handler = handler_class(channel, name, self, *larg, **kwarg) 2 paramiko/transport.py: def set_subsystem_handler(self, name, handler, *larg, **kwarg): in addition to more conventional ❯ git grep '\*args\>' | nl 1 paramiko/_winapi.py: super().__init__(*args) 2 paramiko/_winapi.py: def __init__(self, *args, **kwargs): 3 paramiko/_winapi.py: super().__init__(*args, **kwargs) 4 paramiko/auth_handler.py: def _log(self, *args): 5 paramiko/auth_handler.py: return self.transport._log(*args) 6 paramiko/channel.py: def _check(self, *args, **kwds): 7 paramiko/channel.py: return func(self, *args, **kwds) 8 paramiko/channel.py: def _log(self, level, msg, *args): 9 paramiko/channel.py: self.logger.log(level, "[chan " + self._name + "] " + msg, *args) 10 paramiko/sftp.py: def _log(self, level, msg, *args): 11 paramiko/sftp.py: self.logger.log(level, msg, *args) 12 paramiko/sftp_client.py: def _log(self, level, msg, *args): 13 paramiko/sftp_client.py: self._log(level, m, *args) 14 paramiko/transport.py: def _log(self, level, msg, *args): 15 paramiko/transport.py: self.logger.log(level, msg, *args) 16 tests/__init__.py: def _test_under_locale(testself, *args, **kwargs): 17 tests/__init__.py: return test_method(testself, *args, **kwargs) 18 tests/test_client.py: def __init__(self, *args, **kwargs): 19 tests/test_client.py: super().__init__(*args, **kwargs) 20 tests/test_config.py: def inner(command, *args, **kwargs): 21 tests/test_packetizer.py: def wrapper(*args, **kwargs): 22 tests/test_packetizer.py: result = func(*args, **kwargs)
| * Massage SSHClient.connect exception-raising docstringJeff Forcier2023-01-201-8/+13
| | | | | | | | | | | | | | | | | | - Sphinx Python domain can link to non-stdlib exception classes inside the `:raises:` fieldlist now! yay!! - Add explicit mention of 'can raise NoValidConnectionsError', which was never added when the latter was created. Was still technically correct (it is a subclass of socket.error) but that is not the best kind of correct, after all.
* | Add timeout for opening an SSH channelvakarisz2023-03-022-1/+8
|/
* Docstring and changelog tweaks, thanks @bskinn!Jeff Forcier2023-01-202-2/+4
|
* blackenJeff Forcier2023-01-181-1/+1
|
* Handpick remaining-ly relevant changes from #2110Jeff Forcier2023-01-181-2/+2
| | | | | | Also make 'em f-strings, which AFAIK should be comparable Closes #2110
* Merge branch '2165-int' into 3.0Jeff Forcier2023-01-162-3/+5
|\
| * Improve performance by reducing expensive bytes conversionAlex Gaynor2023-01-102-3/+5
| | | | | | | | | | | | In two core parts of the codebase, complex type-switch based code is used to convert a value to bytes. However, in all cases (except for one, fixed in this PR), the caller is specifying a Message instance. We can make this code much simpler by directly calling the correct method on Message. In #2110 this is measured to massively speed up large SFTP transfers.
* | Break up a big int literalJeff Forcier2023-01-161-2/+2
| | | | | | | | | | | | We could do this on a LOT of hex and similar literals, but that's a lot of work for little gain, let's just do that organically over time instead.
* | Nuke retry_on_signal, pointless on modern Py3Jeff Forcier2023-01-165-28/+5
| | | | | | | | | | Additionally, other bits of code that retry EINTR can similarly just go away.
* | Stop stripping ProxyCommand none, make it NoneJeff Forcier2023-01-161-6/+2
| | | | | | | | | | Also apparently the old, old test for this had the wrong issue number in it :(
* | Nuke unused private methodJeff Forcier2023-01-161-4/+0
| |
* | Punt a bunch of backwards incompatible TODOs to 4.0Jeff Forcier2023-01-164-7/+7
| |
* | Nuke now extraneous chmodJeff Forcier2023-01-161-2/+0
| |
* | Switch an os.open call to use kwargs now that we're py3 onlyJeff Forcier2023-01-161-8/+14
| | | | | | | | Also shuffle comments around to be more local to subjects.
* | blackenJeff Forcier2023-01-161-6/+2
| |
* | well that's just super()!Jeff Forcier2023-01-166-9/+9
| |
* | No more (object)ionsJeff Forcier2023-01-1626-40/+40
| |
* | s/%/fstrings/gJeff Forcier2023-01-162-2/+2
| | | | | | | | Except in one spot where it was too complicated to bother for now XD
* | flake8/blackJeff Forcier2023-01-132-2/+3
| |
* | No more PKey.__cmp__Jeff Forcier2023-01-121-18/+0
| |
* | Can't actually use a set here as it will destroy orderingJeff Forcier2023-01-121-1/+0
| |
* | Swap around __bytes__/__str__ for some classesJeff Forcier2023-01-122-5/+3
| | | | | | | | Plus related updates to tests, docstrings, changelog
* | Start fixing up blatantly wrong-under-py3 docstring typesJeff Forcier2023-01-126-41/+51
| |
* | We live in the future nowJeff Forcier2023-01-123-3/+0
| |
* | Update a bunch of no/low impact python2/3 references/commentsJeff Forcier2023-01-122-7/+4
| |
* | No need for passthru dunder-init in Py3-only dict subclasses yeyJeff Forcier2023-01-121-5/+0
| |
* | Last spot of six removalJeff Forcier2023-01-121-3/+2
| |
* | flake8Jeff Forcier2023-01-113-3/+2
| |
* | blackenJeff Forcier2023-01-1113-36/+52
| |
* | Put back the old faux-long(), kinda, in a few spots onlyJeff Forcier2023-01-114-7/+25
|/
* Some semi-missed removals of 'long'Jeff Forcier2023-01-094-9/+5
| | | | | | | - a couple spots where we wrote longs as int64 and ints as int. I _think_ the right thing to do here is write all ints as int64 given how Python handles these under 3. - docs bits
* py3compat.strftime -> time.strftimeJeff Forcier2023-01-091-3/+2
|
* Nuke outdated todoJeff Forcier2023-01-091-1/+0
|
* nuke py3compat.inputJeff Forcier2023-01-091-1/+0
|
* Remove sys.version_info checksJeff Forcier2023-01-092-8/+2
|
* Update encode/decodebytesJeff Forcier2023-01-092-2/+2
|
* py3compat.builtins -> stdlib builtinsJeff Forcier2023-01-091-1/+1
|
* text_type -> strJeff Forcier2023-01-091-2/+1
|
* bytes_types -> bytesJeff Forcier2023-01-093-9/+7
|