Éric Araujo <mer...@netwok.org> added the comment:

I’ve found the reason: #6665.  fnmatch.translate (used by _glob_to_re was 
changed to support filenames with embedded newlines.  I don’t think it’s a 
concern for us: As the input we give to _glob_to_re comes one line at a time 
from a file, we just never have filenames with newlines.

We can do one of these things for d2:
- Special-case 2.4 and 2.5 in the tests.
- Tweak _glob_to_re so that it changes the generated regex to match what we get 
in newer versions.
- Tweak _glob_to_re to remove the inline flags, as we don’t need them.

I think the last idea would be best.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue11751>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to