(path)
| 256 | p.pprint(o) |
| 257 | |
| 258 | def mkdir_p(path): |
| 259 | try: |
| 260 | os.makedirs(path) |
| 261 | except OSError as exc: # Python >2.5 |
| 262 | if exc.errno == errno.EEXIST and os.path.isdir(path): |
| 263 | pass |
| 264 | else: raise |
| 265 | |
| 266 | def dict_to_json(d, expand=False): |
| 267 | return json.dumps(d, sort_keys=True, indent=4, separators=(',', ': ')) if expand else json.dumps(d, sort_keys=True, separators=(',',':')) |
no outgoing calls
no test coverage detected