Fix FutureWarning about nested sets in re
commitf179afce6580eeb9ac3581d4cc86f94e7a3a1bac
authorFrej Drejhammar <frej.drejhammar@gmail.com>
Wed, 9 Feb 2022 14:32:46 +0000 (9 15:32 +0100)
committerFrej Drejhammar <frej.drejhammar@gmail.com>
Wed, 9 Feb 2022 14:37:29 +0000 (9 15:37 +0100)
tree67aaa3f2136cf6841c4172685d291f5a9a19a034
parent5b7ca5aaece48e3d05b63a393f5011df1d8ec69d
Fix FutureWarning about nested sets in re

Since Python 3.7 the re module warns for syntax which could, in the
future, be misparsed as a nested set. Avoid this by escaping the
literal `[` we search for in the regexp.

Reported by Monte Davidoff @mndavidoff

Closes #269.
hg-fast-export.py