Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment:
Wouldn't be better to use %R? The name can contain invisible characters or 
trailing whitespaces, in which case the traceback can look confusing. Since 
names are likely created with PyUnicode_DecodeFSDefault(), they can contain 
undecodable bytes represented as surrogates U+D8XX if the current filesystem 
encoding doesn't match the filesystem encoding used for creating entries.

----------
nosy: +serhiy.storchaka

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

Reply via email to