diff mercurial/util.py @ 33096:d9962854a4a2

py3: add b'' to make the regex pattern bytes
author Pulkit Goyal <7895pulkit@gmail.com>
date Sun, 25 Jun 2017 03:11:55 +0530
parents 4c5af472a599
children 0e114b992e02
line wrap: on
line diff
--- a/mercurial/util.py	Mon Jun 26 17:20:46 2017 +0530
+++ b/mercurial/util.py	Sun Jun 25 03:11:55 2017 +0530
@@ -2840,7 +2840,7 @@
             return True # remote URL
         if hasdriveletter(self.path):
             return True # absolute for our purposes - can't be joined()
-        if self.path.startswith(r'\\'):
+        if self.path.startswith(br'\\'):
             return True # Windows UNC path
         if self.path.startswith('/'):
             return True # POSIX-style