mirror of
https://github.com/adulau/dcu-tools.git
synced 2024-12-22 16:56:10 +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
|
||||
import sys
|
||||
import json
|
||||
from bson import json_util
|
||||
|
||||
debug = False
|
||||
header = True
|
||||
|
@ -90,7 +89,7 @@ for container in blob_service.list_containers():
|
|||
for x in ds.strip().split("\t")[:27]:
|
||||
d[headers[i]] = x
|
||||
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 debug: sys.stderr.write("Deleting blob: "+str(b.name)+"\n")
|
||||
blob_service.delete_blob(c, b.name)
|
||||
|
|
Loading…
Reference in a new issue