Ensure we don't accidentally set debug in python versions using optparse
This commit is contained in:
parent
4f7f367391
commit
69bae532c5
|
@ -1203,7 +1203,7 @@ def shell():
|
||||||
SCHEME = 'https'
|
SCHEME = 'https'
|
||||||
|
|
||||||
debug = getattr(args, 'debug', False)
|
debug = getattr(args, 'debug', False)
|
||||||
if debug:
|
if debug and debug != 'SUPPRESSHELP':
|
||||||
DEBUG = True
|
DEBUG = True
|
||||||
|
|
||||||
# Pre-cache the user agent string
|
# Pre-cache the user agent string
|
||||||
|
|
Loading…
Reference in New Issue