mercurial/extensions.py
branchstable
changeset 46025 27c23c8f14da
parent 46021 e402a45261db
child 46030 2cf61e66c6d0
equal deleted inserted replaced
46024:07b0a687c01a 46025:27c23c8f14da
   934         version = module.__version__
   934         version = module.__version__
   935     else:
   935     else:
   936         version = b''
   936         version = b''
   937     if isinstance(version, (list, tuple)):
   937     if isinstance(version, (list, tuple)):
   938         version = b'.'.join(pycompat.bytestr(o) for o in version)
   938         version = b'.'.join(pycompat.bytestr(o) for o in version)
       
   939     else:
       
   940         # version data should be bytes, but not all extensions are ported
       
   941         # to py3.
       
   942         version = stringutil.forcebytestr(version)
   939     return version
   943     return version
   940 
   944 
   941 
   945 
   942 def ismoduleinternal(module):
   946 def ismoduleinternal(module):
   943     exttestedwith = getattr(module, 'testedwith', None)
   947     exttestedwith = getattr(module, 'testedwith', None)