Martin v. Löwis <mar...@v.loewis.de> added the comment:

This is not a bug. Your code that produces "very nasty filename" is the right 
one - the file name is actually the one you asked for. The second code is also 
behaving correctly: filename already *is* a bytestring, calling .encode for it 
is meaningless.

----------
nosy: +loewis
resolution:  -> invalid
status: open -> closed

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue10757>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to