Message156678
| Author |
darugar |
| Recipients |
darugar |
| Date |
2012年03月23日.21:51:39 |
| SpamBayes Score |
9.2702095e-07 |
| Marked as misclassified |
No |
| Message-id |
<1332539499.99.0.427604152776.issue14395@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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 . |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2012年03月23日 21:51:40 | darugar | set | recipients:
+ darugar |
| 2012年03月23日 21:51:39 | darugar | set | messageid: <1332539499.99.0.427604152776.issue14395@psf.upfronthosting.co.za> |
| 2012年03月23日 21:51:39 | darugar | link | issue14395 messages |
| 2012年03月23日 21:51:39 | darugar | create |
|