##// END OF EJS Templates
encoding: use i.startswith() instead of i[0] to eliminate py2/3 divergence
Yuya Nishihara -
r32299:7040f513 default
parent child Browse files
Show More
@@ -29,10 +29,7 b' if pycompat.ispy3:'
29 29 "200c 200d 200e 200f 202a 202b 202c 202d 202e "
30 30 "206a 206b 206c 206d 206e 206f feff".split()]
31 31 # verify the next function will work
32 if pycompat.ispy3:
33 assert set(i[0] for i in _ignore) == {ord(b'\xe2'), ord(b'\xef')}
34 else:
35 assert set(i[0] for i in _ignore) == {"\xe2", "\xef"}
32 assert all(i.startswith(("\xe2", "\xef")) for i in _ignore)
36 33
37 34 def hfsignoreclean(s):
38 35 """Remove codepoints ignored by HFS+ from s.
General Comments 0
You need to be logged in to leave comments. Login now