mirror of
https://github.com/adulau/dcu-tools.git
synced 2024-12-23 01:06:08 +00:00
remove json_util dependency
This commit is contained in:
parent
766d791da9
commit
cb61f4e217
1 changed files with 1 additions and 2 deletions
|
@ -26,7 +26,6 @@ from azure.storage import BlobService
|
||||||
from optparse import OptionParser
|
from optparse import OptionParser
|
||||||
import sys
|
import sys
|
||||||
import json
|
import json
|
||||||
from bson import json_util
|
|
||||||
|
|
||||||
debug = False
|
debug = False
|
||||||
header = True
|
header = True
|
||||||
|
@ -90,7 +89,7 @@ for container in blob_service.list_containers():
|
||||||
for x in ds.strip().split("\t")[:27]:
|
for x in ds.strip().split("\t")[:27]:
|
||||||
d[headers[i]] = x
|
d[headers[i]] = x
|
||||||
i=i+1
|
i=i+1
|
||||||
print (json.dumps(d, sort_keys=True, default=json_util.default))
|
print (json.dumps(d, sort_keys=True))
|
||||||
if options.clear:
|
if options.clear:
|
||||||
if debug: sys.stderr.write("Deleting blob: "+str(b.name)+"\n")
|
if debug: sys.stderr.write("Deleting blob: "+str(b.name)+"\n")
|
||||||
blob_service.delete_blob(c, b.name)
|
blob_service.delete_blob(c, b.name)
|
||||||
|
|
Loading…
Reference in a new issue