Serhiy Storchaka added the comment: os.path.normpath() works not only with strings but with bytes objects too. ---------- nosy: +serhiy.storchaka _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue17415> _______________________________________