Fix debug in py<=2.5

This commit is contained in:
Matt Martz 2016-11-02 19:47:55 -05:00
parent d41cfc0cb1
commit 1d6717e714
1 changed files with 3 additions and 1 deletions

View File

@ -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