changeset 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 f0c445a8e324
children a2c59b361e0f
files mercurial/match.py
diffstat 1 files changed, 1 insertions(+), 4 deletions(-) [+]
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.