Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/ui.py @ 31350: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 | 64596338ba10 |
children | 2eee8ad77726 |
comparison
equal
deleted
inserted
replaced
31349:ff25b89a0776 | 31350:66f1c244b43a |
---|---|
899 # TODO: if we want to allow HGPLAINEXCEPT=pager, | 899 # TODO: if we want to allow HGPLAINEXCEPT=pager, |
900 # formatted() will need some adjustment. | 900 # formatted() will need some adjustment. |
901 or not self.formatted() | 901 or not self.formatted() |
902 or self.plain() | 902 or self.plain() |
903 # TODO: expose debugger-enabled on the UI object | 903 # TODO: expose debugger-enabled on the UI object |
904 or '--debugger' in sys.argv): | 904 or '--debugger' in pycompat.sysargv): |
905 # We only want to paginate if the ui appears to be | 905 # We only want to paginate if the ui appears to be |
906 # interactive, the user didn't say HGPLAIN or | 906 # interactive, the user didn't say HGPLAIN or |
907 # HGPLAINEXCEPT=pager, and the user didn't specify --debug. | 907 # HGPLAINEXCEPT=pager, and the user didn't specify --debug. |
908 return | 908 return |
909 | 909 |