Codebase list python-rtslib-fb / 4fdf6db
Merge pull request #163 from pkalever/fix-fdopen save_to_file: fix fd open mode Maurizio Lombardi authored 3 years ago GitHub committed 3 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
478478 finally:
479479 os.umask(umask_original)
480480
481 with os.fdopen(fdesc, 'w+') as f:
481 with os.fdopen(fdesc, 'w') as f:
482482 f.write(json.dumps(saveconf, sort_keys=True, indent=2))
483483 f.write("\n")
484484 f.flush()