Whenever my option goes beyond certain limit, pyyaml converts it into two lines.
How to avoid this ?
e.g.
In [1]: x = \"-c /home/user/test/test2/test23/t
Thanks @MathieuMarques for suggesting to look @ dump options and link provided, YAML documentation was not good enough to find it out.
Anyways solution is to specify width parameter for dump function.
width
dump
i.e. yaml.dump(data, width=1000)
yaml.dump(data, width=1000)