How can I output blank value in python yaml file

I am writing yaml file like this with open(fname, "w") as f: yaml.safe_dump({'allow':'', 'deny': ''}, f, default_flow_style=False, width=50, indent=4) This outputs: allo...