# HG changeset patch # User Gregory Szorc # Date 1645464078 25200 # Node ID 7f5e91cdebcd16f7b18ccf3ac2b9895b04509934 # Parent f0c445a8e324bbaab533cf829e1dc5c860677fe0 match: delete Python 2 conditional code Differential Revision: https://phab.mercurial-scm.org/D12287 diff -r f0c445a8e324 -r 7f5e91cdebcd mercurial/match.py --- a/mercurial/match.py Mon Feb 21 10:20:48 2022 -0700 +++ b/mercurial/match.py Mon Feb 21 10:21:18 2022 -0700 @@ -583,10 +583,7 @@ if b'' in prefix_set: return True - if pycompat.ispy3: - sl = ord(b'/') - else: - sl = '/' + sl = ord(b'/') # We already checked that path isn't in prefix_set exactly, so # `path[len(pf)] should never raise IndexError.