diff -r 2959c3e986e0 -r bd872f64a8ba mercurial/encoding.py --- a/mercurial/encoding.py Sat May 06 04:51:25 2017 +0530 +++ b/mercurial/encoding.py Fri Feb 10 16:56:29 2017 -0800 @@ -30,9 +30,9 @@ "206a 206b 206c 206d 206e 206f feff".split()] # verify the next function will work if pycompat.ispy3: - assert set(i[0] for i in _ignore) == set([ord(b'\xe2'), ord(b'\xef')]) + assert set(i[0] for i in _ignore) == {ord(b'\xe2'), ord(b'\xef')} else: - assert set(i[0] for i in _ignore) == set(["\xe2", "\xef"]) + assert set(i[0] for i in _ignore) == {"\xe2", "\xef"} def hfsignoreclean(s): """Remove codepoints ignored by HFS+ from s.