14412.5.2
by mbp at canonical
Add bsondump helper to read new OOPSes |
1 |
#! /usr/bin/python
|
14612.2.6
by William Grant
utilities |
2 |
|
14412.5.2
by mbp at canonical
Add bsondump helper to read new OOPSes |
3 |
from pprint import pprint |
4 |
import sys |
|
5 |
||
14612.2.6
by William Grant
utilities |
6 |
import bson |
7 |
||
8 |
||
14412.5.2
by mbp at canonical
Add bsondump helper to read new OOPSes |
9 |
pprint(bson.decode_all(file(sys.argv[1], 'rb').read())) |