# HG changeset patch # User Jordi GutiƩrrez Hermoso # Date 2024-02-14 20:23:59 # Node ID 82131be5258e6ac4076a86829b256891c659b870 # Parent 39f349391898383dc8a9298faac1bf33146fbff6 dispatch: don't attempt to import debugger as bytestring The __import__ thingie needs a string, not a bytestring. Guess I'm the only one who uses this once in a while and noticed it was broken. diff --git a/mercurial/dispatch.py b/mercurial/dispatch.py --- a/mercurial/dispatch.py +++ b/mercurial/dispatch.py @@ -413,7 +413,7 @@ def _runcatch(req): # debugging has been requested with demandimport.deactivated(): try: - debugmod = __import__(debugger) + debugmod = __import__(pycompat.sysstr(debugger)) except ImportError: pass # Leave debugmod = pdb