[issue22949] fnmatch.translate doesn't add ^ at the beginning

mstol report at bugs.python.org
Wed Nov 26 15:38:02 CET 2014


mstol added the comment:

it can be changed easyly with changing the return statement in 
fnmatch.py function translate 

from:
    return res + '\Z(?ms)'

to:
    return '^' + res + '\Z(?ms)'

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22949>
_______________________________________


More information about the Python-bugs-list mailing list