mk-fg/pretty-yaml — pull request #3 by chrigl (2013-12-04 17:14:46+00:00)
Title: fixed maximum recursion error

If pyaml.dump was called multiple times it ran into an maximum
recursion error. This was because on each call, the original
Serializer.serialize_node was wrapped with a new one over and over
again.

Also added some tests.

To reproduce the problem, take tests/test_pyaml.py only, and use
py.test to run the code. The test will result in an
RuntimeError: maximum recursion depth exceeded