Late load optional json library.
This commit is contained in:
parent
0f8a1fc6a8
commit
9c4fabfd71
5
buku
5
buku
@ -29,7 +29,6 @@ from urllib.parse import urljoin, quote, unquote
|
|||||||
import gzip
|
import gzip
|
||||||
import io
|
import io
|
||||||
import signal
|
import signal
|
||||||
import json
|
|
||||||
import shutil
|
import shutil
|
||||||
import textwrap
|
import textwrap
|
||||||
|
|
||||||
@ -1154,7 +1153,9 @@ if args.showOpt is not None:
|
|||||||
showOpt = args.showOpt
|
showOpt = args.showOpt
|
||||||
if titleManual is not None and len(args.title) > 0:
|
if titleManual is not None and len(args.title) > 0:
|
||||||
titleManual = " ".join(args.title)
|
titleManual = " ".join(args.title)
|
||||||
jsonOutput = args.jsonOutput
|
if args.jsonOutput:
|
||||||
|
import json
|
||||||
|
jsonOutput = args.jsonOutput
|
||||||
debug = args.debug
|
debug = args.debug
|
||||||
|
|
||||||
# Show version in debug logs
|
# Show version in debug logs
|
||||||
|
Loading…
x
Reference in New Issue
Block a user