changeset 31341:66f1c244b43a

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.
author Augie Fackler <augie@google.com>
date Sat, 11 Mar 2017 20:51:09 -0500
parents ff25b89a0776
children 1470b0f771c8
files mercurial/ui.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/ui.py	Sun Mar 12 22:46:57 2017 +0530
+++ b/mercurial/ui.py	Sat Mar 11 20:51:09 2017 -0500
@@ -901,7 +901,7 @@
             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.