[issue32775] fnmatch.translate() can produce a pattern which emits a nested set warning

2018-02-09 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue32775] fnmatch.translate() can produce a pattern which emits a nested set warning

2018-02-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 0e361730b0954f7560640dd932f00f507e328c45 by Serhiy Storchaka (Miss Islington (bot)) in branch '3.7': bpo-32775: Fix regular expression warnings in fnmatch. (GH-5583) (GH-5596)

[issue32775] fnmatch.translate() can produce a pattern which emits a nested set warning

2018-02-09 Thread miss-islington
Change by miss-islington : -- pull_requests: +5412 ___ Python tracker ___

[issue32775] fnmatch.translate() can produce a pattern which emits a nested set warning

2018-02-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 23cdbfa744f0ec0e9e7575d378df4cb758691cd3 by Serhiy Storchaka in branch 'master': bpo-32775: Fix regular expression warnings in fnmatch. (#5583)

[issue32775] fnmatch.translate() can produce a pattern which emits a nested set warning

2018-02-07 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +5400 stage: -> patch review ___ Python tracker ___

[issue32775] fnmatch.translate() can produce a pattern which emits a nested set warning

2018-02-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It is easy to fix sets starting with '['. It is more hard to fix sets with doubled '-', '&', '|' or '~'. >>> fnmatch.fnmatch('#', '[#--]') /home/serhiy/py/cpython/Lib/fnmatch.py:46: FutureWarning: Possible set difference at

[issue32775] fnmatch.translate() can produce a pattern which emits a nested set warning

2018-02-05 Thread Tim Graham
New submission from Tim Graham : As discussed in issue30349#msg311684, fnmatch.translate() can produce a pattern which emits a nested set warning: >>> import fnmatch, re >>> re.compile(fnmatch.translate('[[]foo]')) __main__:1: FutureWarning: Possible nested set at