Mercurial > public > mercurial-scm > hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
33095:9fc880dff5f3 | 33096:d9962854a4a2 |
---|---|
2838 def isabs(self): | 2838 def isabs(self): |
2839 if self.scheme and self.scheme != 'file': | 2839 if self.scheme and self.scheme != 'file': |
2840 return True # remote URL | 2840 return True # remote URL |
2841 if hasdriveletter(self.path): | 2841 if hasdriveletter(self.path): |
2842 return True # absolute for our purposes - can't be joined() | 2842 return True # absolute for our purposes - can't be joined() |
2843 if self.path.startswith(r'\\'): | 2843 if self.path.startswith(br'\\'): |
2844 return True # Windows UNC path | 2844 return True # Windows UNC path |
2845 if self.path.startswith('/'): | 2845 if self.path.startswith('/'): |
2846 return True # POSIX-style | 2846 return True # POSIX-style |
2847 return False | 2847 return False |
2848 | 2848 |