branch | stable |
changeset 50753 | 847f703a4d13 |
parent 49943 | 330d88217b83 |
child 50925 | d718eddf01d9 |
--- a/mercurial/utils/resourceutil.py Tue Jun 27 22:31:44 2023 +0200 +++ b/mercurial/utils/resourceutil.py Tue Jun 27 13:05:03 2023 +0200 @@ -8,7 +8,7 @@ # GNU General Public License version 2 or any later version. -import imp +import _imp import os import sys @@ -24,7 +24,7 @@ return ( pycompat.safehasattr(sys, "frozen") # new py2exe or pycompat.safehasattr(sys, "importers") # old py2exe - or imp.is_frozen("__main__") # tools/freeze + or _imp.is_frozen("__main__") # tools/freeze )