Serhiy Storchaka added the comment: Since issue22493 fnmatch.translate() uses scoped modifiers: r'(?s:%s)\Z' % res.
Here is a patch that updates the documentation for fnmatch.translate(). ---------- stage: needs patch -> patch review versions: +Python 3.6, Python 3.7 -Python 3.4 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue22949> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com