Mercurial > public > mercurial-scm > hg
comparison doc/check-seclevel.py @ 41355:77763dc5b07b
py3: add b'' prefixes in doc/check-seclevel.py
# skip-blame because just b'' prefixes
Differential Revision: https://phab.mercurial-scm.org/D5670
author | Pulkit Goyal <pulkit@yandex-team.ru> |
---|---|
date | Thu, 24 Jan 2019 18:09:34 +0300 |
parents | 9c6473d2038b |
children | 2372284d9457 |
comparison
equal
deleted
inserted
replaced
41354:93a7539a546e | 41355:77763dc5b07b |
---|---|
161 action="store", type="int", default=0) | 161 action="store", type="int", default=0) |
162 | 162 |
163 (options, args) = optparser.parse_args() | 163 (options, args) = optparser.parse_args() |
164 | 164 |
165 ui = uimod.ui.load() | 165 ui = uimod.ui.load() |
166 ui.setconfig('ui', 'verbose', options.verbose, '--verbose') | 166 ui.setconfig(b'ui', b'verbose', options.verbose, b'--verbose') |
167 ui.setconfig('ui', 'debug', options.debug, '--debug') | 167 ui.setconfig(b'ui', b'debug', options.debug, b'--debug') |
168 | 168 |
169 if options.file: | 169 if options.file: |
170 if checkfile(ui, options.file, options.initlevel): | 170 if checkfile(ui, options.file, options.initlevel): |
171 sys.exit(1) | 171 sys.exit(1) |
172 else: | 172 else: |