title: ruamel.yaml how to use roundtripdumper
body: <p>I want to dump the yaml string with single quotes,</p>
  <pre><code>yaml_str = &quot;&quot;&quot;\
  dic:
    - A: var1    # need to get these strings quoted
    - B: var2
    - C: var3
    - D: var4
    - E: 3       # leave this alone
  </code></pre>
  <p>I found this link where it can be done using RoundTripDumper
  <a href="https://stackoverflow.com/questions/27947653/force-quotes-in-yaml-dump-python">Force quotes in yaml.dump Python</a></p>
  <pre><code>dd = yaml.RoundTripDumper
  dd.process_scalar = process_scalar
  yaml.dump(data, sys.stdout, Dumper=dd)
  </code></pre>
  <p>But it seems the new version of raume.yml doesn't support this function.
  Can someone comment on how to achieve this?</p>