Anish Shah added the comment: @serhiy.storchaka OK, I have used re.escape instead of '\'. And I have added a test too.
Also, may I know why '\' can not be in _LegalChars, so that I can remember this for future purpose? ---------- Added file: http://bugs.python.org/file41837/issue26302_20160206-2.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue26302> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com