Fix debug in py<=2.5
This commit is contained in:
parent
d41cfc0cb1
commit
1d6717e714
|
@ -1285,7 +1285,9 @@ def shell():
|
|||
SCHEME = 'https'
|
||||
|
||||
debug = getattr(args, 'debug', False)
|
||||
if debug and debug != 'SUPPRESSHELP':
|
||||
if debug == 'SUPPRESSHELP':
|
||||
debug = False
|
||||
if debug:
|
||||
DEBUG = True
|
||||
|
||||
# Pre-cache the user agent string
|
||||
|
|
Loading…
Reference in New Issue