Mercurial > hg
comparison mercurial/ui.py @ 47412:c887bab2dccf
py3: byteify the version string passed to the deprecation warning method
The other callers were already correct.
Differential Revision: https://phab.mercurial-scm.org/D10873
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Fri, 11 Jun 2021 23:57:14 -0400 |
parents | a671832a8e41 |
children | b1b3127227be |
comparison
equal
deleted
inserted
replaced
47411:515014d72aa2 | 47412:c887bab2dccf |
---|---|
1063 """see paths.getpath for details | 1063 """see paths.getpath for details |
1064 | 1064 |
1065 This method exist as `getpath` need a ui for potential warning message. | 1065 This method exist as `getpath` need a ui for potential warning message. |
1066 """ | 1066 """ |
1067 msg = b'ui.getpath is deprecated, use `get_*` functions from urlutil' | 1067 msg = b'ui.getpath is deprecated, use `get_*` functions from urlutil' |
1068 self.deprecwarn(msg, '6.0') | 1068 self.deprecwarn(msg, b'6.0') |
1069 return self.paths.getpath(self, *args, **kwargs) | 1069 return self.paths.getpath(self, *args, **kwargs) |
1070 | 1070 |
1071 @property | 1071 @property |
1072 def fout(self): | 1072 def fout(self): |
1073 return self._fout | 1073 return self._fout |