Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/extensions.py @ 38062:9d44c71bd892
py3: use pycompat.bytestr() instead of str() in extensions.py
Differential Revision: https://phab.mercurial-scm.org/D3568
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Fri, 27 Apr 2018 21:54:37 +0530 |
parents | 6e526b0961a8 |
children | bdf344aea0ee |
comparison
equal
deleted
inserted
replaced
38061:2f406142d7b4 | 38062:9d44c71bd892 |
---|---|
725 elif util.safehasattr(module, '__version__'): | 725 elif util.safehasattr(module, '__version__'): |
726 version = module.__version__ | 726 version = module.__version__ |
727 else: | 727 else: |
728 version = '' | 728 version = '' |
729 if isinstance(version, (list, tuple)): | 729 if isinstance(version, (list, tuple)): |
730 version = '.'.join(str(o) for o in version) | 730 version = '.'.join(pycompat.bytestr(o) for o in version) |
731 return version | 731 return version |
732 | 732 |
733 def ismoduleinternal(module): | 733 def ismoduleinternal(module): |
734 exttestedwith = getattr(module, 'testedwith', None) | 734 exttestedwith = getattr(module, 'testedwith', None) |
735 return exttestedwith == "ships-with-hg-core" | 735 return exttestedwith == "ships-with-hg-core" |