# HG changeset patch # User Augie Fackler # Date 2017-03-12 01:51:09 # Node ID 66f1c244b43a962e3224420f30eaa0b2e0980244 # Parent ff25b89a0776e8045334726d2ffde7f4005f0a46 ui: check for --debugger in sys.argv using r-string to avoid bytes on py3 Our source loader was errantly turning this --debugger into a bytes, which was then causing me to still get a pager when I was using the debugger on py3. That made life hard. diff --git a/mercurial/ui.py b/mercurial/ui.py --- a/mercurial/ui.py +++ b/mercurial/ui.py @@ -901,7 +901,7 @@ class ui(object): or not self.formatted() or self.plain() # TODO: expose debugger-enabled on the UI object - or '--debugger' in sys.argv): + or '--debugger' in pycompat.sysargv): # We only want to paginate if the ui appears to be # interactive, the user didn't say HGPLAIN or # HGPLAINEXCEPT=pager, and the user didn't specify --debug.