diff mercurial/match.py @ 48884:7f5e91cdebcd

match: delete Python 2 conditional code Differential Revision: https://phab.mercurial-scm.org/D12287
author Gregory Szorc <gregory.szorc@gmail.com>
date Mon, 21 Feb 2022 10:21:18 -0700
parents 6000f5b25c9b
children f254fc73d956
line wrap: on
line diff
--- 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.