This issue tracker has been migrated to GitHub ,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
Created on 2012年03月23日 21:51 by darugar, last changed 2022年04月11日 14:57 by admin. This issue is now closed.
| Messages (3) | |||
|---|---|---|---|
| msg156678 - (view) | Author: Parand Darugar (darugar) | Date: 2012年03月23日 21:51 | |
Attempting to download a file with a "%" as part of the name (eg. "test%sfile") , sftp.get fails with: File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/logging/__init__.py", line 328, in getMessage msg = msg % self.args TypeError: not enough arguments for format string This appears to be because of the logging in sftp.py: def _log(self, level, msg, *args): self.logger.log(level, msg, *args) I'm able to work around it by escaping the "%" to "%%" before calling sftp.get . |
|||
| msg156794 - (view) | Author: R. David Murray (r.david.murray) * (Python committer) | Date: 2012年03月26日 00:54 | |
There is no sftp module in the standard library. Presumably you are talking about a 3rd party product and should report the bug to its developers. If you are trying instead to report a bug in the logging module, please reopen the issue if you can provide a simple example of triggering the bug you believe exists. (It is much more likely to be a bug in sftp.py). |
|||
| msg156799 - (view) | Author: Parand Darugar (darugar) | Date: 2012年03月26日 06:57 | |
You're absolutely right, it's from paramiko. Apologies. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:57:28 | admin | set | github: 58603 |
| 2012年03月26日 06:57:18 | darugar | set | messages: + msg156799 |
| 2012年03月26日 00:54:59 | r.david.murray | set | status: open -> closed versions: + 3rd party, - Python 2.7 nosy: + r.david.murray messages: + msg156794 resolution: not a bug stage: resolved |
| 2012年03月23日 21:51:39 | darugar | create | |