Mercurial > hg
comparison mercurial/utils/procutil.py @ 43115:4aa72cdf616f
py3: delete b'' prefix from safehasattr arguments
Differential Revision: https://phab.mercurial-scm.org/D7029
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Sun, 06 Oct 2019 20:17:41 -0700 |
parents | d783f945a701 |
children | 227ba1afcb65 |
comparison
equal
deleted
inserted
replaced
43114:8197b395710e | 43115:4aa72cdf616f |
---|---|
257 | 257 |
258 The code supports py2exe (most common, Windows only) and tools/freeze | 258 The code supports py2exe (most common, Windows only) and tools/freeze |
259 (portable, not much used). | 259 (portable, not much used). |
260 """ | 260 """ |
261 return ( | 261 return ( |
262 pycompat.safehasattr(sys, b"frozen") | 262 pycompat.safehasattr(sys, "frozen") |
263 or pycompat.safehasattr(sys, b"importers") # new py2exe | 263 or pycompat.safehasattr(sys, "importers") # new py2exe |
264 or imp.is_frozen(r"__main__") # old py2exe | 264 or imp.is_frozen(r"__main__") # old py2exe |
265 ) # tools/freeze | 265 ) # tools/freeze |
266 | 266 |
267 | 267 |
268 _hgexecutable = None | 268 _hgexecutable = None |