[issue14395] sftp: downloading files with % in name fails due to logging

2012-03-23 Thread Parand Darugar

New submission from Parand Darugar :

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 .

--
messages: 156678
nosy: darugar
priority: normal
severity: normal
status: open
title: sftp: downloading files with % in name fails due to logging
type: behavior
versions: Python 2.7

___
Python tracker 
<http://bugs.python.org/issue14395>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14395] sftp: downloading files with % in name fails due to logging

2012-03-25 Thread Parand Darugar

Parand Darugar  added the comment:

You're absolutely right, it's from paramiko. Apologies.

--

___
Python tracker 
<http://bugs.python.org/issue14395>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com