New submission from Serhiy Storchaka: $ pwd /home/serhiy/py/cpy�thon-3.5 $ ./python -m inspect --details unittest Target: unittest Traceback (most recent call last): File "/home/serhiy/py/cpy\udcffthon-3.5/Lib/runpy.py", line 170, in _run_module_as_main "__main__", mod_spec) File "/home/serhiy/py/cpy\udcffthon-3.5/Lib/runpy.py", line 85, in _run_code exec(code, run_globals) File "/home/serhiy/py/cpy\udcffthon-3.5/Lib/inspect.py", line 3050, in <module> _main() File "/home/serhiy/py/cpy\udcffthon-3.5/Lib/inspect.py", line 3030, in _main print('Origin: {}'.format(getsourcefile(module))) UnicodeEncodeError: 'utf-8' codec can't encode character '\udcff' in position 27: surrogates not allowed
---------- components: Library (Lib) messages: 251116 nosy: serhiy.storchaka, yselivanov priority: normal severity: normal status: open title: python -m inspect --details fails in nondecodable directory type: behavior versions: Python 3.4, Python 3.5, Python 3.6 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue25183> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com