Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/chgserver.py @ 41821:78027e7bc544
py3: convert return values of inspect.getabsfile() to bytes
It's weird that python docs for inspect does not mention getabsfile().
Differential Revision: https://phab.mercurial-scm.org/D6033
author | Pulkit Goyal <pulkit@yandex-team.ru> |
---|---|
date | Thu, 28 Feb 2019 04:08:47 +0530 |
parents | cf8677cd7286 |
children | bce2356ece68 |
comparison
equal
deleted
inserted
replaced
41820:c7fc463b8e8e | 41821:78027e7bc544 |
---|---|
138 except ImportError: | 138 except ImportError: |
139 pass | 139 pass |
140 files = [pycompat.sysexecutable] | 140 files = [pycompat.sysexecutable] |
141 for m in modules: | 141 for m in modules: |
142 try: | 142 try: |
143 files.append(inspect.getabsfile(m)) | 143 files.append(pycompat.fsencode(inspect.getabsfile(m))) |
144 except TypeError: | 144 except TypeError: |
145 pass | 145 pass |
146 return sorted(set(files)) | 146 return sorted(set(files)) |
147 | 147 |
148 def _mtimehash(paths): | 148 def _mtimehash(paths): |