Late load optional json library.

This commit is contained in:
Arun Prakash Jana 2016-05-14 20:47:38 +05:30
parent 0f8a1fc6a8
commit 9c4fabfd71
No known key found for this signature in database
GPG Key ID: C0A712ED95043DCB

5
buku
View File

@ -29,7 +29,6 @@ from urllib.parse import urljoin, quote, unquote
import gzip
import io
import signal
import json
import shutil
import textwrap
@ -1154,7 +1153,9 @@ if args.showOpt is not None:
showOpt = args.showOpt
if titleManual is not None and len(args.title) > 0:
titleManual = " ".join(args.title)
jsonOutput = args.jsonOutput
if args.jsonOutput:
import json
jsonOutput = args.jsonOutput
debug = args.debug
# Show version in debug logs